ListFormWebPart.ControlMode property

NOTE: This API is now obsolete.

Gets or sets the rendering mode of the ListFormWebPart.

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

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ObsoleteAttribute("Use IListWebPart.PageType instead")> _
<BrowsableAttribute(False)> _
Public Property ControlMode As SPControlMode
    Get
    Set
'Usage
Dim instance As ListFormWebPart
Dim value As SPControlMode

value = instance.ControlMode

instance.ControlMode = value
[WebPartStorageAttribute(Storage.Shared)]
[ObsoleteAttribute("Use IListWebPart.PageType instead")]
[BrowsableAttribute(false)]
public SPControlMode ControlMode { get; set; }

Property value

Type: Microsoft.SharePoint.WebControls.SPControlMode
One of the enumeration values that indicates the rendering mode of the ListFormWebPart.

See also

Reference

ListFormWebPart class

ListFormWebPart members

Microsoft.SharePoint.WebPartPages namespace