Partager via


ITextStructureNavigatorProvider.CreateTextStructureNavigator Method

Definition

Creates a new ITextStructureNavigator for a given ITextBuffer.

public:
 Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator ^ CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::Operations::ITextStructureNavigator CreateTextStructureNavigator(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator CreateTextStructureNavigator (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member CreateTextStructureNavigator : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator
Public Function CreateTextStructureNavigator (textBuffer As ITextBuffer) As ITextStructureNavigator

Parameters

textBuffer
ITextBuffer

The ITextBuffer for which to get the ITextStructureNavigator.

Returns

The ITextStructureNavigator for textBuffer, or null.

Remarks

Providers should expect the result of this call to be cached and made available through the ITextStructureNavigatorSelectorService.

Applies to