New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Html

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

The type of the values inside the dictionary.

Syntax:

C#
public class LowerCaseDictionary<T> : IDictionary<string, T>, ICollection<KeyValuePair<string, T>>, IEnumerable<KeyValuePair<string, T>>, IEnumerable

Inheritance: objectLowerCaseDictionary<T>

Implements: ICollection<KeyValuePair<string, T>>IDictionary<string, T>IEnumerableIEnumerable<KeyValuePair<string, T>>

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; }

Implements: ICollection<KeyValuePair<string, T>>.Count

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

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

Implements: IDictionary<string, T>.Keys

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.

Implements: IDictionary<string, T>.this[string]

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

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

Implements: IDictionary<string, T>.Values

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.

Implements: IDictionary<string, T>.Add(string, T)

Removes all items from the ICollection<T>.

C#
public void Clear()

Implements: ICollection<KeyValuePair<string, T>>.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.

Implements: IDictionary<string, T>.ContainsKey(string)

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.

Implements: ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[], int)

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>.

Implements: IDictionary<string, T>.Remove(string)

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.

Implements: IDictionary<string, T>.TryGetValue(string, out T)