InfoPathEditor.Host property

Gets or sets the object used to access the object model of the host application.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Property Host As Object
    Get
    Set
'Usage
Dim instance As InfoPathEditor
Dim value As Object

value = instance.Host

instance.Host = value
Object Host { get; set; }

Property value

Type: System.Object
The object used to access the object model of the host application.

Remarks

Using the Host property, custom form code can call into methods in the host 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 Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace