共用方式為


IVsTextImage.GetLineLength Method

Return the length of a line.

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

Syntax

'宣告
Function GetLineLength ( _
    iLine As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
'用途
Dim instance As IVsTextImage
Dim iLine As Integer
Dim piLength As Integer
Dim returnValue As Integer

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

Parameters

  • iLine
    Type: System.Int32
    [in] Integer containing the line number.
  • piLength
    Type: System.Int32%
    [out] Pointer to an integer containing the character count of the line.

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 IVsTextImage::GetLineLength(
   [in] LONG iLine,
   [out, retval] LONG * piLength
);

.NET Framework Security

See Also

Reference

IVsTextImage Interface

IVsTextImage Members

Microsoft.VisualStudio.TextManager.Interop Namespace