Fires after a page layout is recalculated.
The PageFormatted event's data class is PageFormattedEventArgs. The following properties provide information specific to this event:
|PageIndex||Gets an index of the page that raised the event.|
The PageFormatted event fires for each page whose layout has been recalculated. Document modifications may change the layout of only certain pages (e.g. typing a text invalidates the layout of the current page and the pages which follow). In this situation, the PageFormatted event fires for affected pages, not for the entire document.
The PageFormatted event handler is running in a background (non-UI) thread. To avoid concurrency issues, execute the code which affects the document or interacts with the user asynchronously in a background thread using the RichEditControl.BeginInvoke method.
The order of layout calculation for pages can be different from their order in the document.