ITrackingPoint.GetPosition Method (ITextVersion)
Gets the position of the tracking point in the specified ITextVersion.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Декларация
Function GetPosition ( _
version As ITextVersion _
) As Integer
int GetPosition(
ITextVersion version
)
int GetPosition(
ITextVersion^ version
)
abstract GetPosition :
version:ITextVersion -> int
function GetPosition(
version : ITextVersion
) : int
Parameters
- version
Type: Microsoft.VisualStudio.Text.ITextVersion
The version to which to map the position.
Return Value
Type: System.Int32
A position in the given version.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | version is nulla null reference (Nothing in Visual Basic). |
ArgumentException | version is not a version 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.