WebPartZoneBase.VerbButtonType 屬性

定義

取得或設定按鈕類型,以舊版瀏覽器進行存取時,該按鈕與存在於 WebPartZoneBase 區域中的動詞命令相關聯。

public:
 virtual property System::Web::UI::WebControls::ButtonType VerbButtonType { System::Web::UI::WebControls::ButtonType get(); void set(System::Web::UI::WebControls::ButtonType value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public override System.Web.UI.WebControls.ButtonType VerbButtonType { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.VerbButtonType : System.Web.UI.WebControls.ButtonType with get, set
Public Overrides Property VerbButtonType As ButtonType

屬性值

ButtonType

ButtonType,決定與區域中動詞命令相關聯的按鈕類型。

屬性

備註

Web 組件動詞表示使用者可以在使用者介面中執行的動作, (UI) Web 組件頁面,例如最小化、關閉或還原控制項、將控制項新增至頁面,或取消動作。 指令動詞是由可點選物件在 UI 中表示,您可以設定為使用 VerbButtonType 屬性顯示為超連結、影像或按鈕。

屬性 VerbButtonType 會套用至只存在於區域層級的動詞,而不是存在於區域中每個 WebPart 控制項的動詞。 例如,當您將頁面切換為目錄模式或編輯模式時,區域頁尾中有區域層級動詞,僅適用于整個區域的層級動作。 當使用較舊 (「下層」) 瀏覽器存取Web 組件頁面時,就會 VerbButtonType 套用 屬性。

您必須為每個特定動詞指定一個值 ImageUrl ,才能在其區域中顯示該動詞的影像。 如果您未提供影像的 URL,動詞的 VerbButtonType 屬性預設為 Link

這個屬性無法由佈景主題或樣式表主題設定。 如需詳細資訊,請參閱 ThemeableAttributeASP.NET 主題和外觀

適用於

另請參閱