Alsing.Windows.Forms.SyntaxBox.EditViewControl.GotoPreviousBookmark C# (CSharp) Method

GotoPreviousBookmark() public method

Moves the caret to the previous line that has a bookmark.
public GotoPreviousBookmark ( ) : void
return void
        public void GotoPreviousBookmark()
        {
            int index = Document.GetPreviousBookmark(Caret.Position.Y);
            Caret.SetPos(new TextPoint(0, index));
            ScrollIntoView();
            Redraw();
        }