ITextViewLine::GetTextElementSpan Method (SnapshotPoint)

 

Gets the span whose text element index corresponds to the given buffer position.

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

SnapshotSpan GetTextElementSpan(
	SnapshotPoint bufferPosition
)

Parameters

bufferPosition
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The buffer position.

Return Value

Type: Microsoft.VisualStudio.Text::SnapshotSpan

The SnapshotSpan that corresponds to the given text element.

Return to top
Show: