Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="text">Text</param>
 public TextInfo(TextPart text)
 {
     Text      = text;
     TextArray = null;
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="text">All text parts</param>
 public TextInfo(TextPart[] text)
 {
     Text      = default;
     TextArray = text;
 }
Exemple #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="text">Text</param>
 /// <param name="color">Color</param>
 public TextInfo(string text, FormatterOutputTextKind color)
 {
     Text      = new TextPart(text, color);
     TextArray = null;
 }