ImportCatalogPart.DefaultButton 屬性

定義

取得或設定按鈕,要在使用者介面 (UI) 中視為預設按鈕,並在呈現包含該按鈕的表單時接收焦點。 這個方法並非特意設計來從網頁開發人員程式碼呼叫。

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

屬性值

String

字串,包含接收 Button 控制項中預設焦點之 Panel 的 ID。

屬性

備註

此屬性的程式碼會覆寫繼承自 類別的 Panel 基底屬性,以隱藏設計工具中的屬性,並防止受主題影響。 雖然它是公用的,但是此屬性是由Web 組件控制項集內部使用,以供此控制項的預設轉譯使用,而且不適合供頁面開發人員使用。

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

適用於

另請參閱