[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides methods to navigate text, such as getting word extents.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Thetype exposes the following members.
|GetExtentOfWord||Gets the extent of the word at the given position.|
|GetSpanOfEnclosing||Gets the span of the enclosing syntactic element of the specified snapshot span.|
|GetSpanOfFirstChild||Gets the span of the first child syntactic element of the specified snapshot span.|
|GetSpanOfNextSibling||Gets the span of the next sibling syntactic element of the specified snapshot span.|
|GetSpanOfPreviousSibling||Gets the span of the previous sibling syntactic element of the specified snapshot span.|
Implement this interface if you need to provide a special definition of a word extent in your language or content type, or if you need to define a special relationship between sibling or parent/child syntactic elements. To use it in your extension, you must also implement (in a separate class) the ITextStructureNavigatorProvider so that it creates a navigator of your type, and export this class for your content type. In this case the ITextStructureNavigatorSelectorService will assign your navigator to buffers that have the correct content type.
For an example of how to use the navigator and the navigator provider to get word extents, see Walkthrough: Displaying SmartTags.