InfoPathControl2 Interface
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.
Defines methods used from the implementation of an ActiveX control for initializing, uninitializing, enabling, disabling, and saving the state of a control.
public interface class InfoPathControl2 : Microsoft::Office::Interop::InfoPath::InfoPathControl
[System.Runtime.InteropServices.Guid("096CD77D-0786-11D1-95FA-0080C78EE3BB")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface InfoPathControl2 : Microsoft.Office.Interop.InfoPath.InfoPathControl
type InfoPathControl2 = interface
interface InfoPathControl
Public Interface InfoPathControl2
Implements InfoPathControl
- Attributes
- Implements
Remarks
The InfoPathControl2 and InfoPathControlSite objects and their methods and properties are designed to be used only from the implementation of an ActiveX control. These objects and their members are not supported in InfoPath form code. For more information on how to create ActiveX controls that work with InfoPath, see the InfoPath Developer Center (http://msdn.microsoft.com/infopath).
Methods
Enable(Boolean) |
Defines a method that must be provided by the developer for InfoPath to call when it needs to enable or disable an instance of the control in a view. |
Init(InfoPathControlSite) |
Defines a method that must be provided by the developer to perform any initialization routines required when an instance of the control is added to an InfoPath form. |
RefreshState() |
Defines a method that InfoPath calls when it must refresh the state of an instance of the control in a view. |
SaveState() |
Defines a method that InfoPath calls when it needs to save the state of an instance of the control in a view. |
Uninit() |
Defines a method that must be provided by the developer to perform any clean up routines that are required before an instance of the control is removed from a view. |