CheckBox.LabelAttributes Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une référence à la collection d’attributs pour l’élément LABEL rendu du CheckBox contrôle.
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
Valeur de propriété
Collection de noms et de valeurs d’attributs ajoutés à l’élément LABEL rendu pour le CheckBox. La valeur par défaut est vide AttributeCollection.
- Attributs
Remarques
La Text propriété d’un CheckBox contrôle est rendue et affichée à l’aide d’un élément HTML LABEL. Vous pouvez ajouter des attributs supplémentaires à l’élément LABEL rendu à l’aide de la Add méthode sur la LabelAttributes propriété.