共用方式為


PrintTaskOptionDetails.OptionChanged 事件

定義

變更任何一個進階列印工作選項時引發。

// Register
event_token OptionChanged(TypedEventHandler<PrintTaskOptionDetails, PrintTaskOptionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintTaskOptionDetails::OptionChanged_revoker OptionChanged(auto_revoke_t, TypedEventHandler<PrintTaskOptionDetails, PrintTaskOptionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintTaskOptionDetails,PrintTaskOptionChangedEventArgs> OptionChanged;
function onOptionChanged(eventArgs) { /* Your code */ }
printTaskOptionDetails.addEventListener("optionchanged", onOptionChanged);
printTaskOptionDetails.removeEventListener("optionchanged", onOptionChanged);
- or -
printTaskOptionDetails.onoptionchanged = onOptionChanged;
Public Custom Event OptionChanged As TypedEventHandler(Of PrintTaskOptionDetails, PrintTaskOptionChangedEventArgs) 

事件類型

適用於