We recommend using Visual Studio 2017

TaskPaneCollection.Item Property (Int32) (Microsoft.Office.InfoPath)

Gets a reference to the specified TaskPane object from the collection by index value.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

public abstract TaskPane this [
	int index
] { get; }



The zero-based index of the TaskPane object to return.

Property Value

The TaskPane object that corresponds to the specified index value.

Exception typeCondition


The index value provided was out of range.

After you have set a reference to the TaskPane object that the Item property returns, you can access any of its properties and methods.

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft Office InfoPath 2007.