Freigeben über


VsTextBufferClass.GetLengthOfLine Method

Returns the length of a line in the buffer.

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

Syntax

'Declaration
Public Overridable Function GetLengthOfLine ( _
    iLine As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
'Usage
Dim instance As VsTextBufferClass
Dim iLine As Integer
Dim piLength As Integer
Dim returnValue As Integer

returnValue = instance.GetLengthOfLine(iLine, _
    piLength)
public virtual int GetLengthOfLine(
    int iLine,
    out int piLength
)
public:
virtual int GetLengthOfLine(
    [InAttribute] int iLine, 
    [OutAttribute] int% piLength
)
abstract GetLengthOfLine : 
        iLine:int * 
        piLength:int byref -> int 
override GetLengthOfLine : 
        iLine:int * 
        piLength:int byref -> int 
public function GetLengthOfLine(
    iLine : int, 
    piLength : int
) : int

Parameters

  • iLine
    Type: System.Int32
    [in] Number of the line whose length is requested.
  • piLength
    Type: System.Int32%
    [out] Pointer to the length of the line.

Return Value

Type: System.Int32

Implements

IVsTextBuffer.GetLengthOfLine(Int32, Int32%)

.NET Framework Security

See Also

Reference

VsTextBufferClass Class

VsTextBufferClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace