IInitEventHandler.InitEventHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.