TextDocument::ClearBookmarks Method ()
Visual Studio 2015
Removes all unnamed bookmarks in the text document.
Assembly: EnvDTE (in EnvDTE.dll)
The following examples look in a document (like a text file) for the word, int. If it is found, a bookmark is placed on its line. The examples then use the ClearBookmarks method to delete the bookmarks.
To run the following example, first either create or open a document that contains the word, int.
Show: