共用方式為


SPWebPartManager.CreateDisplayModes method

建立 Web 組件應用程式的所有可能的顯示模式集合。

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

Syntax

'宣告
Protected Overrides Function CreateDisplayModes As WebPartDisplayModeCollection
'用途
Dim returnValue As WebPartDisplayModeCollection

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

傳回值

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollection
支援網頁組件顯示模式。

備註

這個覆寫新增GallerySearchDisplayModeImportDisplayModeNavigationDisplayModeDownLevelWebPartMenuDisplayModeToolPaneErrorDisplayModeExtensibleViewDisplayMode到支援的網頁組件顯示模式集合。

請參閱

參照

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace