Share via

PrintTask.Previewing Event


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

Applies to