Edit

Share via


TaskPanesCollection Interface

Definition

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

public interface class TaskPanesCollection : Microsoft::Office::Interop::InfoPath::SemiTrust::TaskPanes
[System.Runtime.InteropServices.Guid("096cd58d-0786-11d1-95fa-0080c78ee3bb")]
public interface TaskPanesCollection : Microsoft.Office.Interop.InfoPath.SemiTrust.TaskPanes
type TaskPanesCollection = interface
    interface TaskPanes
Public Interface TaskPanesCollection
Implements TaskPanes
Attributes
Implements

Examples

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

<span class="label">TaskPanes</span> taskPanes = thisApplication.ActiveWindow.<span class="label">TaskPanes</span>;

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, 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.

Note: 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.

Properties

Count

Gets a count of the number of the TaskPaneObject objects contained in the collection.

(Inherited from TaskPanes)
Item[Object]

Gets a reference to the specified the TaskPaneObject object from the collection.

(Inherited from TaskPanes)

Methods

GetEnumerator()

Gets an IEnumerator that iterates over all entries in the TaskPanesCollection object.

(Inherited from TaskPanes)

Applies to