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

An IDictionary{string, T} containing lowercase keys only.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Html

Assembly:Telerik.WinControls.RichTextEditor.dll

Type Parameters:

T

The type of the values inside the dictionary.

Syntax:

C#
public class LowerCaseDictionary<T> : IEnumerable

Inheritance: objectLowerCaseDictionary<T>

Implements: IEnumerable

Constructors

Initializes a new instance of the LowerCaseDictionary<T> class.

C#
public LowerCaseDictionary()

Properties

Gets the number of elements contained in the ICollection<T>.

C#
public int Count { get; }

Keys

ICollection<string>

Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.

C#
public ICollection<string> Keys { get; }

Gets or sets the T with the specified key.

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

The key.

Property Value:

The T.

Values

ICollection<T>

Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.

C#
public ICollection<T> Values { get; }

Methods

Adds an element with the provided key and value to the IDictionary<TKey, TValue>.

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

The object to use as the key of the element to add.

valueT

The object to use as the value of the element to add.

Removes all items from the ICollection<T>.

C#
public void Clear()

Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.

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

The key to locate in the IDictionary<TKey, TValue>.

Returns:

bool

true if the IDictionary<TKey, TValue> contains an element with the key; otherwise, false.

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

C#
public void CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
Parameters:arrayKeyValuePair<string, T>[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndexint

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

Removes the element with the specified key from the IDictionary<TKey, TValue>.

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

The key of the element to remove.

Returns:

bool

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey, TValue>.

Gets the value associated with the specified key.

C#
public bool TryGetValue(string key, out T value)
Parameters:keystring

The key whose value to get.

valueT

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns:

bool

true if the object that implements IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.