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

Defines a dictionary-like collection for HTML style name/value pairs.

Definition

Properties

Gets or sets the style value for the specified key.

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

The style key.

Property Value:

The style value associated with the key.

Methods

Adds a style entry to the collection.

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

The style property name.

valuestring

The style property value.

Determines whether a style key exists in the collection.

C#
bool Contains(string key)
Parameters:keystring

The style key to locate.

Returns:

bool

true if the key exists; otherwise, false.

Copies the style 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 a style entry from the collection.

C#
void Remove(string key)
Parameters:keystring

The style key to remove.

Renders the style declarations to the specified string builder.

C#
void Render(StringBuilder sb)
Parameters:sbStringBuilder

The string builder that receives the rendered styles.