Edit

Share via


IDebugDocumentText2::GetSize

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

Syntax

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