ITrackingPoint.GetPosition Method (ITextSnapshot)
Gets the position of the tracking point in the specified ITextSnapshot.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaração
Function GetPosition ( _
snapshot As ITextSnapshot _
) As Integer
int GetPosition(
ITextSnapshot snapshot
)
int GetPosition(
ITextSnapshot^ snapshot
)
abstract GetPosition :
snapshot:ITextSnapshot -> int
function GetPosition(
snapshot : ITextSnapshot
) : int
Parameters
- snapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The snapshot to which to map the position.
Return Value
Type: System.Int32
A position in the given snapshot.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | snapshot is nulla null reference (Nothing in Visual Basic). |
ArgumentException | snapshot is not a snapshot of TextBuffer. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.