共用方式為


ITrackingSpan.GetStartPoint(ITextSnapshot) Method

Definition

Maps the start of the tracking span to a particular snapshot of its text buffer.

public:
 Microsoft::VisualStudio::Text::SnapshotPoint GetStartPoint(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot);
public Microsoft.VisualStudio.Text.SnapshotPoint GetStartPoint (Microsoft.VisualStudio.Text.ITextSnapshot snapshot);
abstract member GetStartPoint : Microsoft.VisualStudio.Text.ITextSnapshot -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function GetStartPoint (snapshot As ITextSnapshot) As SnapshotPoint

Parameters

snapshot
ITextSnapshot

The snapshot to which to map the start point.

Returns

A SnapshotPoint of the provided snapshot.

Exceptions

snapshot is null.

snapshot is not a snapshot of TextBuffer.

Applies to