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 ^ sender, Microsoft::Office::InfoPath::XmlForm ^ xmlForm, [Runtime::InteropServices::Out] Microsoft::Office::Interop::InfoPath::XdReadOnlyViewMode % viewsReadOnlyMode);
public void InitEventHandler(object sender, Microsoft.Office.InfoPath.XmlForm xmlForm, out Microsoft.Office.Interop.InfoPath.XdReadOnlyViewMode viewsReadOnlyMode);
abstract member InitEventHandler : obj * Microsoft.Office.InfoPath.XmlForm *  -> unit

Parameters

sender
Object

A reference to the object that is the source of the event.

xmlForm
XmlForm

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

viewsReadOnlyMode
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 Loading 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 Form Editing Environment in a Custom Windows Form ApplicationWhat's New for InfoPath Developers.

Applies to