IVsTextLines::GetLineCount Method (Int32)
Visual Studio 2015
Returns the number of lines in the buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- piLineCount
-
Type:
System::Int32
[out] Pointer to the number of lines in the buffer.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextBuffer::GetLineCount(Int32)From textmgr.idl:
HRESULT IVsTextLines::GetLineCount(
[out] long *piLineCount
);
This method is used heavily by views and is reasonably efficient in all implementations.
Show: