PrintDocument.Paginate Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the PrintManager requests the collection of print pages to be shown in the preview window.
public:
virtual event PaginateEventHandler ^ Paginate;
// Register
event_token Paginate(PaginateEventHandler const& handler) const;
// Revoke with event_token
void Paginate(event_token const* cookie) const;
// Revoke with event_revoker
PrintDocument::Paginate_revoker Paginate(auto_revoke_t, PaginateEventHandler const& handler) const;
public event PaginateEventHandler Paginate;
function onPaginate(eventArgs) { /* Your code */ }
printDocument.addEventListener("paginate", onPaginate);
printDocument.removeEventListener("paginate", onPaginate);
- or -
printDocument.onpaginate = onPaginate;
Public Custom Event Paginate As PaginateEventHandler