Represents a form creating, displaying, or editing a list item in a list.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Use the Forms property of the SPList class to return an SPFormCollection object that represents the collection of forms for a list, and use an indexer to return a single form from the collection. For example, if the collection is assigned to a variable named collForms, use collForms[index] in C#, or collForms(index) in Visual Basic, where index is either the index number of the form in the collection or the name of the form page.
The following code example iterates through all forms for the Contacts list of the current site and displays their site-relative URLs and types.