TCustomRichView.DocumentHeight (read-only)

<< Click to display table of contents >>

TCustomRichView.DocumentHeight (read-only)

Height of document (height of scrollable area)

property DocumentHeight: TRVCoord;

Document must be formatted to obtain a correct value.

Example [VCL]:

if MyRichView.DocumentHeight>Screen.Height then

  MyRichView.Height := Screen.Height

else

  MyRichView.Height := MyRichView.DocumentHeight;

See also:

Scrolling.