ITrackingSpan::GetSpan Method (ITextSnapshot^)

 

Maps the tracking span to the specified snapshot of its text buffer.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

SnapshotSpan GetSpan(
	ITextSnapshot^ snapshot
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The snapshot to which to map the tracking span.

Exception Condition
ArgumentNullException

snapshot is null.

ArgumentException

snapshot is not a snapshot of TextBuffer.

Return to top
Show: