CheckBox.LabelAttributes 屬性

定義

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

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

屬性值

AttributeCollection

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

屬性

備註

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

適用於

另請參閱