PrintWorkflowForegroundSession.XpsDataAvailable Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenché lorsque les données d’impression XPS peuvent être lues. Cette opération est effectuée une fois l’événement SetupRequested déclenché . Inscrivez-vous à cet événement pour effectuer un travail dépendant de l’interface utilisateur qui nécessite l’affichage du contenu d’impression.
// Register
event_token XpsDataAvailable(TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;
// Revoke with event_token
void XpsDataAvailable(event_token const* cookie) const;
// Revoke with event_revoker
PrintWorkflowForegroundSession::XpsDataAvailable_revoker XpsDataAvailable(auto_revoke_t, TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowForegroundSession,PrintWorkflowXpsDataAvailableEventArgs> XpsDataAvailable;
function onXpsDataAvailable(eventArgs) { /* Your code */ }
printWorkflowForegroundSession.addEventListener("xpsdataavailable", onXpsDataAvailable);
printWorkflowForegroundSession.removeEventListener("xpsdataavailable", onXpsDataAvailable);
- or -
printWorkflowForegroundSession.onxpsdataavailable = onXpsDataAvailable;
Public Custom Event XpsDataAvailable As TypedEventHandler(Of PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs)
Type d'événement
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour