Udostępnij za pośrednictwem


IVsTextStream.GetLineCount(Int32) Method

Definition

Returns the number of lines in the buffer.

public:
 int GetLineCount([Runtime::InteropServices::Out] int % piLineCount);
int GetLineCount([Runtime::InteropServices::Out] int & piLineCount);
public int GetLineCount (out int piLineCount);
abstract member GetLineCount : int -> int
Public Function GetLineCount (ByRef piLineCount As Integer) As Integer

Parameters

piLineCount
Int32

[out] Pointer to the number of lines in the buffer.

Returns

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

Implements

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStream::GetLineCount(  
   [out] long *piLineCount  
);  

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

Applies to