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

Definition

Namespace:Telerik.WinControls.UI.Export.HTML

Assembly:TelerikData.dll

Syntax:

C#
public class StyleValuesCollection : IStyleValuesCollection, IDictionary, ICollection, IEnumerable

Inheritance: objectStyleValuesCollection

Implements: ICollectionIDictionaryIEnumerableIStyleValuesCollection

Constructors

C#
public StyleValuesCollection()
C#
public StyleValuesCollection(IDictionary dictionary)
Parameters:dictionaryIDictionary

Properties

C#
public int Count { get; }
C#
public bool IsFixedSize { get; }
C#
public bool IsReadOnly { get; }
C#
public bool IsSynchronized { get; }
C#
public ICollection Keys { get; }
C#
public object SyncRoot { get; }

Gets or sets the style value for the specified key.

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

The style key.

Property Value:

The style value associated with the key.

Implements: IStyleValuesCollection.this[string]

C#
public ICollection Values { get; }

Methods

Adds a style entry to the collection.

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

The style property name.

valuestring

The style property value.

Implements: IStyleValuesCollection.Add(string, string)

C#
public void Clear()

Determines whether a style key exists in the collection.

C#
public bool Contains(string key)
Parameters:keystring

The style key to locate.

Returns:

bool

true if the key exists; otherwise, false.

Implements: IStyleValuesCollection.Contains(string)

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

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

The destination array.

indexint

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

Implements: IStyleValuesCollection.CopyTo(string[], int)

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public IDictionaryEnumerator GetEnumerator()
Returns:

IDictionaryEnumerator

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Removes a style entry from the collection.

C#
public void Remove(string key)
Parameters:keystring

The style key to remove.

Implements: IStyleValuesCollection.Remove(string)

Renders the style declarations to the specified string builder.

C#
public void Render(StringBuilder sb)
Parameters:sbStringBuilder

The string builder that receives the rendered styles.

Implements: IStyleValuesCollection.Render(StringBuilder)