TaskPaneCollection.Item Property (Int32)

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)

Syntax

'Declaration
Public MustOverride ReadOnly Default Property Item ( _
    index As Integer _
) As TaskPane
    Get
'Usage
Dim instance As TaskPaneCollection
Dim index As Integer
Dim value As TaskPane

value = instance(index)
public abstract TaskPane this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

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

Property Value

Type: Microsoft.Office.InfoPath.TaskPane
The TaskPane object that corresponds to the specified index value.

Exceptions

Exception Condition
IndexOutOfRangeException

The index value provided was out of range.

Remarks

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 InfoPath Filler.

See Also

Reference

TaskPaneCollection Class

TaskPaneCollection Members

Item Overload

Microsoft.Office.InfoPath Namespace