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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.Item(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