PrintTask.Previewing 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.
Raised when the print system initializes print preview mode.
// Register
event_token Previewing(TypedEventHandler<PrintTask, IInspectable const&> const& handler) const;
// Revoke with event_token
void Previewing(event_token const* cookie) const;
// Revoke with event_revoker
PrintTask::Previewing_revoker Previewing(auto_revoke_t, TypedEventHandler<PrintTask, IInspectable const&> const& handler) const;
public event TypedEventHandler<PrintTask,object> Previewing;
function onPreviewing(eventArgs) { /* Your code */ }
printTask.addEventListener("previewing", onPreviewing);
printTask.removeEventListener("previewing", onPreviewing);
- or -
printTask.onpreviewing = onPreviewing;
Public Custom Event Previewing As TypedEventHandler(Of PrintTask, Object)
Event Type
TypedEventHandler<PrintTask,IInspectable>