共用方式為


SPWebPartManager.GallerySearchDisplayMode property

取得可讓使用者搜尋 Web 組件圖庫中要新增至網頁的 Web 組件WebPartDisplayMode

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

Syntax

'宣告
Public Shared ReadOnly Property GallerySearchDisplayMode As WebPartDisplayMode
    Get
'用途
Dim value As WebPartDisplayMode

value = SPWebPartManager.GallerySearchDisplayMode
public static WebPartDisplayMode GallerySearchDisplayMode { get; }

Property value

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayMode
可讓使用者搜尋要新增至網頁的 Web 組件 Web 組件圖庫中顯示模式。

請參閱

參照

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace