次の方法で共有


IVsTextBuffer.GetLengthOfLine(Int32, Int32) Method

Definition

Returns the length of a line in the buffer.

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

Parameters

iLine
Int32

[in] Number of the line whose length is requested.

piLength
Int32

[out] Pointer to the length 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 IVsTextBuffer::GetLengthOfLine(  
   [in] long iLine,  
   [out] long *piLength  
);  

This method is used heavily by views and is reasonably efficient in all implementations.

Applies to