共用方式為


VsTextLineStorageClass.Storage_GetLengthOfLine Method

Gets the length of the specified line.

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

Syntax

'宣告
Public Overridable Function Storage_GetLengthOfLine ( _
    iLine As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
public virtual int Storage_GetLengthOfLine(
    int iLine,
    out int piLength
)
public:
virtual int Storage_GetLengthOfLine(
    [InAttribute] int iLine, 
    [OutAttribute] int% piLength
)
abstract Storage_GetLengthOfLine : 
        iLine:int * 
        piLength:int byref -> int 
override Storage_GetLengthOfLine : 
        iLine:int * 
        piLength:int byref -> int 
public function Storage_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.

Implements

IVsTextStorage.Storage_GetLengthOfLine(Int32, Int32%)

.NET Framework Security

See Also

Reference

VsTextLineStorageClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace