Share via


SPFormContext.FormMode Property

Gets or sets the control mode of the form.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property FormMode As SPControlMode
    Get
    Set
'Usage
Dim instance As SPFormContext
Dim value As SPControlMode

value = instance.FormMode

instance.FormMode = value
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