Share via


SPFormCollection.Item property (Int32)

Gets the form object at the specified index in the collection. In C#, this property is an indexer for the SPFormCollection class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPForm
    Get
'Usage
Dim instance As SPFormCollection
Dim iIndex As Integer
Dim value As SPForm

value = instance(iIndex)
public SPForm this[
    int iIndex
] { get; }

Parameters

  • iIndex
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property value

Type: Microsoft.SharePoint.SPForm
A Microsoft.SharePoint.SPForm object that represents the form.

Remarks

The Item property throws an ArgumentOutOfRangeException if the specified index is outside the valid range of indexes for the collection.

See also

Reference

SPFormCollection class

SPFormCollection members

Item overload

Microsoft.SharePoint namespace