Share via

CheckBox.LabelAttributes Property


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

 property System::Web::UI::AttributeCollection ^ LabelAttributes { System::Web::UI::AttributeCollection ^ get(); };
public System.Web.UI.AttributeCollection LabelAttributes { get; }
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.



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