System.Web.UI.WebControls.ListItem.Attributes Property

Gets a collection of attribute name and value pairs for the System.Web.UI.WebControls.ListItem that are not directly supported by the class.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.AttributeCollection Attributes { get; }

Value

a System.Web.UI.AttributeCollection

Remarks

Use the ListItem.Attributes collection to manage the attribute name and value pairs declared in the opening and closing tags of the System.Web.UI.WebControls.ListItem, but not directly supported by the class. You can programmatically add or remove attributes to the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0