Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is TextChar))
            {
                return(false);
            }
            TextChar tc = (TextChar)obj;

            return(tc.Value == value && tc.Font == font && tc.Color == color && tc.Special && special);
        }
Beispiel #2
0
 /// <summary>
 /// Inserts a character at a certain Position
 /// </summary>
 /// <param name="position">Default -1 means the character will be appended to the end</param>
 public void InsertChar(TextChar c, int position = -1)
 {
     if (position == -1)
     {
         chars.Add(c);
     }
     else
     {
         chars.Insert(position, c);
     }
 }