This documentation is archived and is not being maintained.

TextSelection.PreviousBookmark Method

Moves the text selection to the location of the previous bookmark in the document.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

bool PreviousBookmark ()
boolean PreviousBookmark ()
function PreviousBookmark () : boolean

Return Value

A Boolean true if the text selection moves to a previous bookmark, false if not.

If there are no more bookmarks, the edit point is not moved.

PreviousBookmark moves the TextSelection object to the location of the first bookmark preceding the location of the active end of the TextSelection. The TextSelection is collapsed at the new location.

Show: