Sdílet prostřednictvím


VsTextBufferClass.GetLineCount(Int32) Method

Definition

Returns the number of lines in the buffer.

public:
 virtual int GetLineCount([Runtime::InteropServices::Out] int % piLineCount) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::GetLineCount;
public:
 virtual int GetLineCount([Runtime::InteropServices::Out] int % piLineCount);
 virtual int GetLineCount([Runtime::InteropServices::Out] int & piLineCount);
public virtual int GetLineCount (out int piLineCount);
abstract member GetLineCount : int -> int
override this.GetLineCount : int -> int
Public Overridable 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, returns S_OK; otherwise, returns an error code.

Implements

Applies to