Ejemplo n.º 1
0
 public void AddTextOnCurrentPosition(string text)
 {
     if (IsInsertMode && CurrentChar < TextLines[CurrentString].Length)
     {
         TextLines.RemoveInLine(CurrentString, CurrentChar,
                                Math.Min(text.Length, TextLines[CurrentString].Length - CurrentChar));
     }
     TextLines.InsertInLine(CurrentString, text, CurrentChar);
     CurrentPosition.Chr += text.Length;
 }
Ejemplo n.º 2
0
 public void AddTabulationOnCurrentPosition()
 {
     TextLines.InsertInLine(CurrentString, "\t", CurrentChar);
     CurrentPosition.Chr++;
 }