CheckBox.InputAttributes 屬性

定義

針對 CheckBox 控制項的呈現 INPUT 項目,取得屬性集合的參考。

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

屬性值

AttributeCollection

屬性名稱和值的集合,這些名稱和值會加入至 CheckBox 控制項的呈現 INPUT 項目。 預設為空的 AttributeCollection

屬性

備註

控制項 CheckBox 會使用 HTML INPUT 元素轉譯和顯示。 您可以使用 屬性上的 方法, Add 將其他屬性新增至轉譯的 InputAttributes INPUT 元素。

適用於

另請參閱