menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DictionaryList - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DictionaryList

    This class implements a custom dictionary that supports IList interface.

    Inheritance
    System.Object
    DictionaryList
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    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 array at which copying begins.

    Exceptions
    Type Condition
    System.ArgumentNullException

    array is null.

    System.ArgumentOutOfRangeException

    index is less than zero.

    System.ArgumentException

    array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source System.Collections.Specialized.ListDictionary is greater than the available space from index to the end of the destination array.

    System.InvalidCastException

    The type of the source System.Collections.Specialized.ListDictionary cannot be cast automatically to the type of the destination array.

    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 value if found in the list; otherwise, -1.

    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 value should be inserted.

    System.Object value

    The System.Object to insert into the System.Collections.IList.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is not a valid index in the System.Collections.IList.

    System.NotSupportedException

    The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

    System.NullReferenceException

    value is null reference in the System.Collections.IList.

    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

    index is not a valid index in the System.Collections.IList.

    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

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved