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 部件显示模式。
备注
此重写添加GallerySearchDisplayMode、 ImportDisplayMode、 NavigationDisplayMode、 DownLevelWebPartMenuDisplayMode、 ToolPaneErrorDisplayMode和ExtensibleViewDisplayMode到支持的 Web 部件显示模式集合。