Share via


SPFormContext.FormMode property

Gets or sets the control mode of the form.

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

Syntax

public SPControlMode FormMode { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.SPControlMode
An Microsoft.SharePoint.WebControls.SPControlMode value that specifies the control mode. Possible values include Display, Edit, Invalid, and New.

See also

Reference

SPFormContext class

SPFormContext members

Microsoft.SharePoint namespace