Compartilhar via


VsTextBufferClass.GetPositionOfLine Method

Returns the position number of a line.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaração
Public Overridable Function GetPositionOfLine ( _
    iLine As Integer, _
    <OutAttribute> ByRef piPosition As Integer _
) As Integer
public virtual int GetPositionOfLine(
    int iLine,
    out int piPosition
)
public:
virtual int GetPositionOfLine(
    [InAttribute] int iLine, 
    [OutAttribute] int% piPosition
)
abstract GetPositionOfLine : 
        iLine:int * 
        piPosition:int byref -> int 
override GetPositionOfLine : 
        iLine:int * 
        piPosition:int byref -> int 
public function GetPositionOfLine(
    iLine : int, 
    piPosition : int
) : int

Parameters

  • iLine
    Type: System.Int32
    [in] Number of the line whose position is requested.
  • piPosition
    Type: System.Int32%
    [out] Pointer to the equivalent position number.

Return Value

Type: System.Int32
If the method succeeds, returns S_OK; otherwise, returns an error code.

Implements

IVsTextBuffer.GetPositionOfLine(Int32, Int32%)

.NET Framework Security

See Also

Reference

VsTextBufferClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace