ITrackingSpan.GetStartPoint Method (ITextSnapshot)

 

Maps the start of 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)

SnapshotPoint GetStartPoint(
	ITextSnapshot snapshot
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot

The snapshot to which to map the start point.

Return Value

Type: Microsoft.VisualStudio.Text.SnapshotPoint

A SnapshotPoint of the provided snapshot.

Exception Condition
ArgumentNullException

snapshot is null.

ArgumentException

snapshot is not a snapshot of TextBuffer.

Return to top
Show: