I need a code snippet to delete the last line of ScintillaNET control and append a line to it. I tried this but didn't work:
scintilla1.GoTo.Line(scintilla1.Lines.Count);
int nowPosition = scintilla1.Caret.Position;
scintilla1.Text.Remove(nowPosition);