private void selectLine_Click(object sender, RoutedEventArgs e) { if (ActiveDocument != null) { ScintillaNET.Line line = ActiveDocument.scintilla.Lines[ActiveDocument.scintilla.CurrentLine]; ActiveDocument.scintilla.SetSelection(line.Position + line.Length, line.Position); } }
public void SetBookmark(Line line) { uint mask = (uint)(1 << _bookmarkMarker); if ((line.MarkerGet() & mask) > 0) { // Remove existing bookmark line.MarkerDelete(_bookmarkMarker); //WriteMessage("remove bookmark at {0}", line.Index); } else { // Add bookmark line.MarkerAdd(_bookmarkMarker); //WriteMessage("add bookmark at {0}", line.Index); } }