PageCount

Description

Returns the total number of pages in the document in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.PageCount ( )

Returns

Integer. Returns the number of pages in the RichTextEdit control. Returns 1 if the control contains no text and -1 if an error occurs.