/// <summary>
        /// Initializes a new instance of the <see cref="PlaceholderTextSegment"/> class.
        /// </summary>
        /// <param name="textPlaceholder">The text placeholder to use.</param>
        /// <param name="flags">The text flags.</param>
        /// <param name="color">The text color.</param>
        public PlaceholderTextSegment(TextPlaceholder textPlaceholder, FormattedTextFlags flags, Color color)
        {
            Flags = flags;
            Color = color;
            Text  = textPlaceholder.GetText();

            textPlaceholder.TextChanged += TextPlaceholderTextChanged;
            _textPlaceholder             = textPlaceholder;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="StaticTextSegment"/> class
 /// with text, color and type.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="flags">The text type.</param>
 /// <param name="color">The text color.</param>
 public StaticTextSegment(string text, FormattedTextFlags flags, Color color)
 {
     Text  = text;
     Flags = flags;
     Color = color;
 }