Class DictionaryList
This class implements a custom dictionary that supports IList interface.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class DictionaryList : ListDictionary, IList, ICollection, IEnumerable
Constructors
DictionaryList()
Initializes a new instance of the DictionaryList class.
Declaration
public DictionaryList()
Properties
Item[Object]
Gets or sets the System.Object with the specified key.
Declaration
public object this[object key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | The key of Dictionary entry. |
Property Value
Type |
---|
System.Object |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Copies the System.Collections.Specialized.ListDictionary entries to a one-dimensional System.Array instance at the specified index.
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from System.Collections.Specialized.ListDictionary. The System.Array must have zero-based indexing. |
System.Int32 | index | The zero-based index in |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
System.ArgumentException |
|
System.InvalidCastException | The type of the source System.Collections.Specialized.ListDictionary cannot be cast automatically to the type of the destination |
ICollection.Count
Gets the number of key/value pairs contained in the System.Collections.Specialized.ListDictionary.
Declaration
int ICollection.Count { get; }
Returns
Type |
---|
System.Int32 |
ICollection.IsSynchronized
Gets a value indicating whether the System.Collections.Specialized.ListDictionary is synchronized (thread safe).
Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type |
---|
System.Boolean |
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the System.Collections.Specialized.ListDictionary.
Declaration
object ICollection.SyncRoot { get; }
Returns
Type |
---|
System.Object |
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |
IList.Add(Object)
Adds an item to the System.Collections.IList.
Declaration
int IList.Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Object to add to the System.Collections.IList. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size. |
IList.Clear()
Removes all entries from the System.Collections.Specialized.ListDictionary.
Declaration
void IList.Clear()
IList.Contains(Object)
Determines whether the System.Collections.IList contains a specific value.
Declaration
bool IList.Contains(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Object to locate in the System.Collections.IList. |
Returns
Type | Description |
---|---|
System.Boolean | true if the System.Object is found in the System.Collections.IList; otherwise, false. |
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Object |
IList.IndexOf(Object)
Determines the index of a specific item in the System.Collections.IList.
Declaration
int IList.IndexOf(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Object to locate in the System.Collections.IList. |
Returns
Type | Description |
---|---|
System.Int32 | The index of |
IList.Insert(Int32, Object)
Inserts an item to the System.Collections.IList at the specified index.
Declaration
void IList.Insert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
System.Object | value | The System.Object to insert into the System.Collections.IList. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
System.NotSupportedException | The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size. |
System.NullReferenceException |
|
IList.IsFixedSize
Gets a value indicating whether the System.Collections.Specialized.ListDictionary has a fixed size.
Declaration
bool IList.IsFixedSize { get; }
Returns
Type |
---|
System.Boolean |
IList.IsReadOnly
Gets a value indicating whether the System.Collections.Specialized.ListDictionary is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
Type |
---|
System.Boolean |
IList.Item[Int32]
Gets or sets the System.Object at the specified index.
Declaration
object IList.this[] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Returns
Type |
---|
System.Object |
IList.Remove(Object)
Removes the first occurrence of a specific object from the System.Collections.IList.
Declaration
void IList.Remove(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Object to remove from the System.Collections.IList. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size. |
IList.RemoveAt(Int32)
Removes the System.Collections.IList item at the specified index.
Declaration
void IList.RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the item to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
System.NotSupportedException | The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size. |
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |