SPWebPartManager.CreateDisplayModes 方法

创建 Web 部件应用程序的所有可能的显示模式设置。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Overrides Function CreateDisplayModes As WebPartDisplayModeCollection
用法
Dim returnValue As WebPartDisplayModeCollection

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

返回值

类型:System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollection
支持 Web 部件显示模式。

备注

此重写添加GallerySearchDisplayModeImportDisplayModeNavigationDisplayModeDownLevelWebPartMenuDisplayModeToolPaneErrorDisplayModeExtensibleViewDisplayMode到支持的 Web 部件显示模式集合。

另请参阅

引用

SPWebPartManager 类

SPWebPartManager 成员

Microsoft.SharePoint.WebPartPages 命名空间