Beispiel #1
0
 public void SetBookmarked(int position, bool mark)
 {
     if (bookmarkBuffer != null)
     {
         bookmarkBuffer.SetBookmarked(position, mark);
     }
 }
Beispiel #2
0
        public void ToggleBookmark()
        {
            IBookmarkBuffer markBuffer = GetContent <IBookmarkBuffer> ();

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

            markBuffer.SetBookmarked(position, !markBuffer.IsBookmarked(position));
        }