Class
LowerCaseDictionary<T>

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:

cs-api-definition
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

LowerCaseDictionary()

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

Declaration

cs-api-definition
public LowerCaseDictionary()

Properties

Count

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

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

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

Keys

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

Declaration

cs-api-definition
public ICollection<string> Keys { get; }

Property Value

ICollection<string>

Implements IDictionary<string, T>.Keys

Values

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

Declaration

cs-api-definition
public ICollection<T> Values { get; }

Property Value

ICollection<T>

Implements IDictionary<string, T>.Values

this[string]

Gets or sets the T with the specified key.

Declaration

cs-api-definition
public T this[string key] { get; set; }

Parameters

key

string

The key.

Property Value

T

The T.

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

Methods

Add(string, T)

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

Declaration

cs-api-definition
public void Add(string key, T value)

Parameters

key

string

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

value

T

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

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

Clear()

Removes all items from the ICollection<T>.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<KeyValuePair<string, T>>.Clear()

ContainsKey(string)

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

Declaration

cs-api-definition
public bool ContainsKey(string key)

Parameters

key

string

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)

CopyTo(KeyValuePair<string, T>[], int)

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

Declaration

cs-api-definition
public void CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)

Parameters

array

KeyValuePair<string, T>[]

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

arrayIndex

int

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

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

Remove(string)

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

Declaration

cs-api-definition
public bool Remove(string key)

Parameters

key

string

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)

TryGetValue(string, out T)

Gets the value associated with the specified key.

Declaration

cs-api-definition
public bool TryGetValue(string key, out T value)

Parameters

key

string

The key whose value to get.

value

T

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)