Share via


IDebugDocumentText2::GetSize

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the size of the text at this position in the document.

Syntax

HRESULT GetSize( 
   ULONG* pcNumLines,
   ULONG* pcNumChars
);
int GetSize( 
   ref uint pcNumLines,
   ref uint pcNumChars
);

Parameters

pcNumLines
[out] Returns the number of lines of text.

pcNumChars
[out] Returns the number of characters of text.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

[C++ only] If a particular value is not desired, pass a NULL for the parameter.

[C# only] Both parameters must be specified.

See also