Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

TaskPanesCollection interface

Contains a collection of TaskPaneObject objects that represent the task panes associated with a window in Microsoft Office InfoPath 2003.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

[GuidAttribute("096CD58D-0786-11D1-95FA-0080C78EE3BB")]
public interface TaskPanesCollection : TaskPanes

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, seeTaskPanes.

The TaskPanesCollection collection provides properties that can be used to access a collection of task pane objects, and it is accessed through the TaskPanes property of the WindowObject object.

NoteNote

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.

In the following example, the TaskPanes property of the WindowObject object is used to set a reference to the TaskPanes collection:

TaskPanes taskPanes = thisApplication.ActiveWindow.TaskPanes;
Show:
© 2015 Microsoft