Contains a collection of TaskPane objects that represent the task panes associated with a window in Microsoft Office InfoPath 2007.
Namespace: Microsoft.Office.InfoPath Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
The TaskPaneCollection class provides properties that can be used to access TaskPane objects, and it is accessed through the TaskPanes property of the Window class.
The TaskPaneCollection class can be used only to get the count of the TaskPane objects that it contains and to return a reference to a specified TaskPane object. It cannot be used to add or remove TaskPane objects.