示例#1
0
        public void ToggleBookmark()
        {
            IBookmarkBuffer markBuffer = GetContent <IBookmarkBuffer> ();

            Debug.Assert(markBuffer != null);
            int position = markBuffer.CursorPosition;

            markBuffer.SetBookmarked(position, !markBuffer.IsBookmarked(position));
        }
示例#2
0
 public bool IsBookmarked(int position)
 {
     if (bookmarkBuffer != null)
     {
         return(bookmarkBuffer.IsBookmarked(position));
     }
     else
     {
         return(false);
     }
 }