Freigeben über


IVsTextLayer.GetLengthOfLine Method

Returns the length of a line.

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

Syntax

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

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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextLayer::GetLengthOfLine(
   [in] long iLine,
   [out] long *piLength
);

.NET Framework Security

See Also

Reference

IVsTextLayer Interface

IVsTextLayer Members

Microsoft.VisualStudio.TextManager.Interop Namespace