共用方式為


PrintDocument.Paginate 事件

定義

PrintManager 要求在預覽視窗中顯示列印頁面的集合時發生。

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 

事件類型

適用於

另請參閱