Поделиться через


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

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

See Also

Reference

ITrackingPoint Interface

GetPosition Overload

Microsoft.VisualStudio.Text Namespace