Compartilhar via


IVsTextStorage.Storage_GetLengthOfLine(Int32, Int32) Method

Definition

Gets the length of the specified line.

public:
 int Storage_GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int % piLength);
int Storage_GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int & piLength);
public int Storage_GetLengthOfLine (int iLine, out int piLength);
abstract member Storage_GetLengthOfLine : int * int -> int
Public Function Storage_GetLengthOfLine (iLine As Integer, ByRef piLength As Integer) As Integer

Parameters

iLine
Int32

[in] Index of line of interest.

piLength
Int32

[out] Length of line.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStorage::Storage_GetLengthOfLine(  
   [in] long iLine,  
   [out] long *piLength  
);  

Applies to