共用方式為


PageCatalogPart.Width 屬性

定義

呈現 PageCatalogPart 控制項時,設定的 Web 組件控制項不會使用這個繼承屬性。 屬性只會為了防止它出現在 Microsoft Visual Studio 2005 設計工具中而遭到覆寫。

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

屬性值

Unit,表示控制項的寬度。

屬性

備註

屬性 Width 是控件的成員 PageCatalogPart ,不會在 Web 元件控件集合內的任何位置使用,以便轉譯控件。 因此,您不應該使用此屬性;設定它不會影響轉譯。

為了防止開發人員使用這個屬性,程式代碼屬性會設定在Visual Studio中隱藏它。 當您在 PageCatalogPart Visual Studio 中使用控件時, Width 屬性不會顯示在 [屬性] 窗格或 IntelliSense 中。

如果您想要使用這個屬性,您必須建立繼承自 類別的 CatalogPart 自定義類別。 自定義類別可以使用繼承 Width 的屬性,或覆寫它並變更其行為。

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

適用於

另請參閱