scripting:api:text-document:size

Size

Property of ITextDocument

Return document size in characters

Read-Only Property of type long

var nVal = TextDocument.Size;
nVal = TextDocument.Size
long nVal;
HRESULT hr = TextDocument.get_Size(&nVal);