Edit

Share via


XmlForm.TaskPanes Property

Definition

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.

Applies to