Partager via


ITextStructureNavigatorProvider.CreateTextStructureNavigator Method

Creates a new ITextStructureNavigator for the specified ITextBuffer.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function CreateTextStructureNavigator ( _
    textBuffer As ITextBuffer _
) As ITextStructureNavigator
ITextStructureNavigator CreateTextStructureNavigator(
    ITextBuffer textBuffer
)
ITextStructureNavigator^ CreateTextStructureNavigator(
    ITextBuffer^ textBuffer
)
abstract CreateTextStructureNavigator : 
        textBuffer:ITextBuffer -> ITextStructureNavigator
function CreateTextStructureNavigator(
    textBuffer : ITextBuffer
) : ITextStructureNavigator

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Operations.ITextStructureNavigator
The ITextStructureNavigator for textBuffer, or nulla null reference (Nothing in Visual Basic).

Remarks

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

.NET Framework Security

See Also

Reference

ITextStructureNavigatorProvider Interface

Microsoft.VisualStudio.Text.Operations Namespace