_IInitEventHandler.InitEventHandler Méthode
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.
Gère l’événement d’initialisation lorsqu’un formulaire est chargé dans l’objet hébergé InfoPathEditor .
public:
void InitEventHandler(System::Object ^ punkSender, Microsoft::Office::Interop::InfoPath::_XDocument ^ pDocument, [Runtime::InteropServices::Out] Microsoft::Office::Interop::InfoPath::XdReadOnlyViewMode % pROMode);
public void InitEventHandler(object punkSender, Microsoft.Office.Interop.InfoPath._XDocument pDocument, out Microsoft.Office.Interop.InfoPath.XdReadOnlyViewMode pROMode);
abstract member InitEventHandler : obj * Microsoft.Office.Interop.InfoPath._XDocument * -> unit
Public Sub InitEventHandler (punkSender As Object, pDocument As _XDocument, ByRef pROMode As XdReadOnlyViewMode)
Paramètres
- punkSender
- Object
Pointeur vers la source de l’événement.
- pDocument
- _XDocument
Référence à l’objet _XDocument chargé dans l’objet InfoPathEditor .
- pROMode
- XdReadOnlyViewMode
Énumération XdReadOnlyViewMode qui spécifie la façon dont l’affichage du formulaire sera présenté.
Remarques
La méthode InitEventHandler s’exécute après le chargement de toutes les doMs auxiliaires, mais avant que l’événement OnLoad ne se produise.
La méthode InitEventHandler peut être utilisée lorsque l’objet InfoPathEditor est hébergé dans une application personnalisée. Pour plus d’informations sur InfoPathEditor et les FormControl objets , consultez l’article MSDN Hébergement de l’environnement d’édition de formulaire InfoPath 2007 dans une application Windows Form personnaliséeNouveautés pour les développeurs InfoPath.