TCustomRichView.DocumentHeight (read-only)

<< Click to display table of contents >>

TCustomRichView.DocumentHeight (read-only)

Height of document (height of scrollable area)

property DocumentHeight: Integer;

Document must be formatted to obtain a correct value.

Example:

if MyRichView.DocumentHeight>Screen.Height then

  MyRichView.Height := Screen.Height

else

  MyRichView.Height := MyRichView.DocumentHeight;

See also:

Scrolling.