alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class NavigationDrawerItemCollection

    Collection which holds the NavigationDrawer's child items

    Inheritance
    System.Object
    NavigationDrawerItemCollection
    Implements
    System.Collections.Generic.IList<System.Windows.Forms.Control>
    System.Collections.Generic.ICollection<System.Windows.Forms.Control>
    System.Collections.Generic.IEnumerable<System.Windows.Forms.Control>
    System.Collections.IEnumerable
    System.Collections.IList
    System.Collections.ICollection
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class NavigationDrawerItemCollection : Object, IList<Control>, ICollection<Control>, IEnumerable<Control>, IEnumerable, IList, ICollection

    Properties

    Count

    Gets the number of elements contained in the collection.

    Declaration
    public int Count { get; }
    Property Value
    Type
    System.Int32

    Item[Int32]

    Gets or sets the element at the specified index.

    Declaration
    public Control this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the element to get or set.

    Property Value
    Type Description
    System.Windows.Forms.Control

    The element at the specified index.

    Methods

    Add(Control)

    Adds an item to the collection.

    Declaration
    public void Add(Control item)
    Parameters
    Type Name Description
    System.Windows.Forms.Control item

    The item to add to the collection.

    AsEnumerable()

    Enumarable list for collection

    Declaration
    public IEnumerable<Control> AsEnumerable()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Windows.Forms.Control>

    Returns the updated Collection List

    Clear()

    Removes all items from the collection.

    Declaration
    public void Clear()

    Contains(Control)

    Determines whether the collection contains a specific value.

    Declaration
    public bool Contains(Control item)
    Parameters
    Type Name Description
    System.Windows.Forms.Control item

    The object to locate in the collection.

    Returns
    Type Description
    System.Boolean

    True if the item is found in the collection, otherwise false.

    GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    public IEnumerator<Control> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.Windows.Forms.Control>

    An IEnumerator object that can be used to iterate through the collection.

    IndexOf(Control)

    Determines the index of a specific item in the list.

    Declaration
    public int IndexOf(Control item)
    Parameters
    Type Name Description
    System.Windows.Forms.Control item

    The object to locate in the list.

    Returns
    Type Description
    System.Int32

    The index of the item if found in the list, otherwise -1.

    Insert(Int32, Control)

    Inserts an item to the list at the specified index.

    Declaration
    public void Insert(int index, Control item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which item should be inserted.

    System.Windows.Forms.Control item

    The object to insert into the list.

    Remove(Control)

    Removes the first occurrence of a specific object from the collection.

    Declaration
    public bool Remove(Control item)
    Parameters
    Type Name Description
    System.Windows.Forms.Control item

    The object to remove from the collection.

    Returns
    Type Description
    System.Boolean

    True if the item was successfully removed from the colleection, otherwise false. This method also returns false if the item is not found in the original collection.

    RemoveAt(Int32)

    Removes the item at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to remove.

    Sort()

    Sorts the items in the collection

    Declaration
    public void Sort()

    Sort(IComparer<Control>)

    Sorts the items in the collection using the provided comparer.

    Declaration
    public void Sort(IComparer<Control> comparer)
    Parameters
    Type Name Description
    System.Collections.Generic.IComparer<System.Windows.Forms.Control> comparer

    The comparer used to compare items.

    Implements

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