Share via


ToolZone.AssociatedDisplayModes 屬性

定義

取得與特定 WebPartDisplayMode 區域相關聯的 ToolZone 物件集合。

public:
 property System::Web::UI::WebControls::WebParts::WebPartDisplayModeCollection ^ AssociatedDisplayModes { System::Web::UI::WebControls::WebParts::WebPartDisplayModeCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollection AssociatedDisplayModes { get; }
[<System.ComponentModel.Browsable(false)>]
member this.AssociatedDisplayModes : System.Web.UI.WebControls.WebParts.WebPartDisplayModeCollection
Public ReadOnly Property AssociatedDisplayModes As WebPartDisplayModeCollection

屬性值

WebPartDisplayModeCollection

WebPartDisplayModeCollection,包含與 WebPartDisplayMode 控制項相關聯的 ToolZone 物件。

屬性

備註

每個 ToolZone 控制項都有與其相關聯的特殊頁面顯示模式,如下表所示。

注意

在Web 組件控制項集所提供的區域實 ToolZone 作中,每個區域只會與一個顯示模式相關聯。 不過,您可以使用 建立 ToolZone(ICollection) 自訂區域與多個顯示模式的關聯。

工具區欄位型別 相關聯的顯示模式
EditorZone EditDisplayMode
CatalogZone CatalogDisplayMode
ConnectionsZone ConnectDisplayMode

頁面上每個區域的相關顯示模式集合會新增至 SupportedDisplayModes 屬性,以決定頁面上可能顯示模式的總集合。

適用於

另請參閱