Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="text">Text</param>
 public TextInfo(TextPart text)
 {
     Text      = text;
     TextArray = null;
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="text">All text parts</param>
 public TextInfo(TextPart[] text)
 {
     Text      = default;
     TextArray = text;
 }
Пример #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;
 }