SPWebPartManager.CreateDisplayModes Method

Creates the set of all possible display modes for a Web Parts application.

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

Syntax

'Declaration
Protected Overrides Function CreateDisplayModes As WebPartDisplayModeCollection
'Usage
Dim returnValue As WebPartDisplayModeCollection

returnValue = Me.CreateDisplayModes()
protected override WebPartDisplayModeCollection CreateDisplayModes()

Return Value

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollection
The Web Part display modes that are supported.

Remarks

This override adds GallerySearchDisplayMode, ImportDisplayMode, NavigationDisplayMode, DownLevelWebPartMenuDisplayMode, ToolPaneErrorDisplayMode and ExtensibleViewDisplayMode to the supported Web Part display modes collection.

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace