Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPFormCollection class
Collapse the table of content
Expand the table of content

SPFormCollection class

Represents a collection of SPForm objects.

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

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft