語言

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

屬性值

包含 控制項預設焦點Button的 ID Panel 的字串。

屬性

備註

此屬性的程式碼會覆蓋從 Panel 類別繼承的基礎屬性,以隱藏該屬性,防止設計者使用,避免其受到主題影響。 雖然它是公開的,但此屬性在 Web Parts 控制集內部用於預設渲染此控制項,並非設計給頁面開發者使用。

此屬性無法由主題或樣式表主題設定。 更多資訊請參閱 ThemeableAttribute 並 ASP.NET 主題與皮膚。

適用於

另請參閱