New to Telerik UI for WinForms? Start a free 30-day trial

Defines a dictionary-like collection for element attribute name/value pairs.

Definition

Properties

Gets or sets the attribute value for the specified key.

C#
string this[string key] { get; set; }
Parameters:keystring

The attribute key.

Property Value:

The attribute value associated with the key.

Methods

Adds an attribute entry to the collection.

C#
void Add(string key, string value)
Parameters:keystring

The attribute name.

valuestring

The attribute value.

Determines whether an attribute key exists in the collection.

C#
bool Contains(string key)
Parameters:keystring

The attribute key to locate.

Returns:

bool

true if the key exists; otherwise, false.

Copies the attribute values to an array, starting at the specified index.

C#
void CopyTo(string[] array, int index)
Parameters:arraystring[]

The destination array.

indexint

The zero-based index in the destination array at which copying begins.

Removes an attribute entry from the collection.

C#
void Remove(string key)
Parameters:keystring

The attribute key to remove.