Поделиться через


PrintWorkflowForegroundSession.SetupRequested Событие

Определение

Вызывается первым в сеансе переднего плана рабочего процесса печати. Это событие предоставляет сведения о задании печати, но не само содержимое печати. Зарегистрируйтесь для этого события, чтобы выполнить работу с заданием печати, зависящей от пользовательского интерфейса, перед печатью.

// Register
event_token SetupRequested(TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void SetupRequested(event_token const* cookie) const;

// Revoke with event_revoker
PrintWorkflowForegroundSession::SetupRequested_revoker SetupRequested(auto_revoke_t, TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowForegroundSession,PrintWorkflowForegroundSetupRequestedEventArgs> SetupRequested;
function onSetupRequested(eventArgs) { /* Your code */ }
printWorkflowForegroundSession.addEventListener("setuprequested", onSetupRequested);
printWorkflowForegroundSession.removeEventListener("setuprequested", onSetupRequested);
- or -
printWorkflowForegroundSession.onsetuprequested = onSetupRequested;
Public Custom Event SetupRequested As TypedEventHandler(Of PrintWorkflowForegroundSession, PrintWorkflowForegroundSetupRequestedEventArgs) 

Тип события

Применяется к