System.Web.UI.AttributeCollection Members

The members of System.Web.UI.AttributeCollection are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.AttributeCollection class.

Public Properties

[read-only]
Countint.

Gets the number of attributes in the System.Web.UI.AttributeCollection object.

[read-only]
CssStyleCssStyleCollection.

Gets a collection of styles for the ASP.NET server control to which the current System.Web.UI.AttributeCollection object belongs.

default property
Item(string)string. Documentation for this section has not yet been entered.
[read-only]
KeysICollection.

Gets a collection of keys to all attributes in the server control's System.Web.UI.AttributeCollection object.

Public Methods

Add(string, string)

Adds an attribute to a server control's System.Web.UI.AttributeCollection object.

AddAttributes(HtmlTextWriter)

Adds attributes from the System.Web.UI.AttributeCollection class to the System.Web.UI.HtmlTextWriter object that is responsible for rendering the attributes as markup.

Clear()

Removes all attributes from a server control's System.Web.UI.AttributeCollection object.

override
Equals(object) : bool

Determines whether the current instance of the System.Web.UI.AttributeCollection object is equal to the specified object.

override
GetHashCode() : int

Returns the hash code for this instance.

Remove(string)

Removes an attribute from a server control's System.Web.UI.AttributeCollection object.

Render(HtmlTextWriter)

Writes the collection of attributes to the specified System.Web.UI.HtmlTextWriter output stream for the control to which the collection belongs.