XmlForm.TaskPanes Property
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.
Gets a reference to the TaskPaneCollection that is associated with a form template.
public:
abstract property Microsoft::Office::InfoPath::TaskPaneCollection ^ TaskPanes { Microsoft::Office::InfoPath::TaskPaneCollection ^ get(); };
public abstract Microsoft.Office.InfoPath.TaskPaneCollection TaskPanes { get; }
member this.TaskPanes : Microsoft.Office.InfoPath.TaskPaneCollection
Public MustOverride ReadOnly Property TaskPanes As TaskPaneCollection
Property Value
A TaskPaneCollection that contains any TaskPane objects associated with the form template.
Exceptions
The TaskPanes property was called from the Loading event.
Examples
In the following code example, the TaskPanes property of the XmlForm class is used to set a reference to the TaskPaneCollection associated with the form template:
TaskPaneCollection formTaskPanes = this.TaskPanes;
Dim formTaskPanes As TaskPaneCollection = Me.TaskPanes
Remarks
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.