SPFormCollection class
SharePoint 2013
Represents a collection of SPForm objects.
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.SPFormCollection
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.SPFormCollection
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableTypeAttribute(Name = "FormCollection", ServerTypeId = "{078611ea-ce4d-45c0-9b7a-d4b1b46cc327}", CollectionIndexerMethodClientName = "GetById", CollectionChildItemType = typeof(SPForm), SampleUrl = "{apiroot}/web/lists({listid})/forms")] [SubsetCallableTypeAttribute] public class SPFormCollection : SPBaseCollection
Use the Forms property of the SPList class to return the collection of forms for a list.
Use an indexer to return a single form from the collection. For example, assuming the collection is assigned to a variable named myForms , use myForms[index] in C#, or myForms(index) in Microsoft Visual Basic, where index is either the index number of the form in the collection or the site-relative URL of the form.