Example #1
0
 public static void ToggleBookmark(ITextEditor editor, int line,
                                   Predicate <SDBookmark> canToggle,
                                   Func <Location, SDBookmark> bookmarkFactory)
 {
     foreach (SDBookmark bookmark in GetBookmarks(new FileName(editor.FileName)))
     {
         if (canToggle(bookmark) && bookmark.LineNumber == line)
         {
             BookmarkManager.RemoveMark(bookmark);
             return;
         }
     }
 }
Example #2
0
 protected override void RemoveMark()
 {
     BookmarkManager.RemoveMark(this);
 }