SPWebPartManager.CreateDisplayModes Method
SharePoint 2010
Creates the set of all possible display modes for a Web Parts application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Return Value
Type: System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollectionThe Web Part display modes that are supported.
This override adds GallerySearchDisplayMode, ImportDisplayMode, NavigationDisplayMode, DownLevelWebPartMenuDisplayMode, ToolPaneErrorDisplayMode and ExtensibleViewDisplayMode to the supported Web Part display modes collection.