TaskPanesCollection Interface (Microsoft.Office.Interop.InfoPath)
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, see TaskPanes.
The TaskPanesCollection collection can be used only to get the count of the TaskPaneObject objects that it contains and to return a reference to a specified TaskPaneObject object. It cannot be used to add or remove TaskPaneObject objects.