ITrackingPoint.GetPosition Method

Definition

Overloads

GetPosition(ITextSnapshot)

The position of the tracking point in the specified ITextSnapshot.

GetPosition(ITextVersion)

The position of the tracking point in the specified ITextVersion.

GetPosition(ITextSnapshot)

The position of the tracking point in the specified ITextSnapshot.

public:
 int GetPosition(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot);
public:
 int GetPosition(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot);
int GetPosition(Microsoft::VisualStudio::Text::ITextSnapshot const & snapshot);
public int GetPosition (Microsoft.VisualStudio.Text.ITextSnapshot snapshot);
abstract member GetPosition : Microsoft.VisualStudio.Text.ITextSnapshot -> int
Public Function GetPosition (snapshot As ITextSnapshot) As Integer

Parameters

snapshot
ITextSnapshot

The snapshot to which to map the position.

Returns

An integer position in the given snapshot.

Exceptions

snapshot is null.

snapshot is not a snapshot of TextBuffer.

Applies to

GetPosition(ITextVersion)

The position of the tracking point in the specified ITextVersion.

public:
 int GetPosition(Microsoft::VisualStudio::Text::ITextVersion ^ version);
public:
 int GetPosition(Microsoft::VisualStudio::Text::ITextVersion ^ version);
int GetPosition(Microsoft::VisualStudio::Text::ITextVersion const & version);
public int GetPosition (Microsoft.VisualStudio.Text.ITextVersion version);
abstract member GetPosition : Microsoft.VisualStudio.Text.ITextVersion -> int
Public Function GetPosition (version As ITextVersion) As Integer

Parameters

version
ITextVersion

The version to which to map the position.

Returns

An integer position in the given version.

Exceptions

version is null.

version is not a version of TextBuffer.

Applies to