Edit

Share via


_IInitEventHandler.InitEventHandler Method

Definition

Handles the initialization event when a form is loaded in the hosted InfoPathEditor object.

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)

Parameters

punkSender
Object

A pointer to the source of the event.

pDocument
_XDocument

A reference to the _XDocument object loaded into the InfoPathEditor object.

pROMode
XdReadOnlyViewMode

An XdReadOnlyViewMode enumeration that specifies how the view of the form will be presented.

Remarks

InitEventHandler method executes after all auxiliary DOMs are loaded but before the OnLoad event occurs.

The InitEventHandler method is available for use when the InfoPathEditor object is hosted in a custom application. For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form ApplicationWhat's New for InfoPath Developers.

Applies to