CheckBox.LabelAttributes Property

Definition

Gets a reference to the collection of attributes for the rendered LABEL element of the CheckBox control.

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

Property Value

The collection of attribute names and values that are added to the rendered LABEL element for the CheckBox. The default is an empty AttributeCollection.

Attributes

Remarks

The Text property of a CheckBox control is rendered and displayed using an HTML LABEL element. You can add additional attributes to the rendered LABEL element using the Add method on the LabelAttributes property.

Applies to

See also