TSRichViewEdit.CalculatePageCount

Top  Previous  Next

Repaginates and returns the page count.

function CalculatePageCount: Integer;

Usually, if a document is changed by editing-style methods, it is is repaginated automatically.

Call this method in the following cases:

if you modified a document using viewer-style methods (methods that do not call OnChange)

if you blocked updating with CanUpdate property

Return value:

count of pages

See also:

PageCount property


ScaleRichView © Ilya Zelensky & Sergey Tkachenko