public void ToggleBookmark() { IBookmarkBuffer markBuffer = GetContent <IBookmarkBuffer> (); Debug.Assert(markBuffer != null); int position = markBuffer.CursorPosition; markBuffer.SetBookmarked(position, !markBuffer.IsBookmarked(position)); }
public bool IsBookmarked(int position) { if (bookmarkBuffer != null) { return(bookmarkBuffer.IsBookmarked(position)); } else { return(false); } }