SPFormContext members

Provides information about the context that is specific to a list item form.

The SPFormContext type exposes the following members.

Properties

  Name Description
Public property CSRDefaultValuesCollection Gets a Dictionary to write field default values into for Location Based Defaults.
Public property CSRFieldValueCollection Gets an ArrayList that returns pairs of SPField objects and their submitted value.
Public property EnableInputFieldLabels Gets or sets a Boolean value that specifies whether the Edit or New form uses edit or add mode field labels.
Public property FieldControlCollection Gets an ArrayList that stores the field controls in the form.
Public property FormMode Gets or sets the control mode of the form.
Public property OnSaveHandler Gets or sets an event handler for callback when the Save button in the form is clicked.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetFormMode Sets the control mode of the form.
Public method SetListFormWebPart Adds a list form web part to a page and registers it with the FormContext.
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPFormContext class

Microsoft.SharePoint namespace