Condividi tramite


IVsTextImage.GetLineLength(Int32, Int32) Method

Definition

Return the length of a line.

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

Parameters

iLine
Int32

[in] Integer containing the line number.

piLength
Int32

[out] Pointer to an integer containing the character count of the 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 IVsTextImage::GetLineLength(  
   [in] LONG iLine,  
   [out, retval] LONG * piLength  
);  

Applies to