WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ComboBoxBaseDataBound.ObjectCollection

    Show / Hide Table of Contents

    Class ComboBoxBaseDataBound.ObjectCollection

    Inheritance
    System.Object
    ComboBoxBaseDataBound.ObjectCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ObjectCollection : IList, ICollection, IEnumerable, IDisposable

    Constructors

    ObjectCollection(ComboBoxBaseDataBound)

    Initializes a new instance of the ComboBoxBaseDataBound.ObjectCollection class.

    Declaration
    public ObjectCollection(ComboBoxBaseDataBound owner)
    Parameters
    Type Name Description
    ComboBoxBaseDataBound owner

    The ComboBoxBaseDataBound that owns this object collection.

    Properties

    Count

    Gets the number of items in the collection.

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

    IsReadOnly

    Gets a value indicating whether this collection can be modified.

    Declaration
    public virtual bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    Item[Int32]

    Gets / sets the item at the specified index. This is the Indexer property.

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

    Index value of the item.

    Property Value
    Type Description
    System.Object

    Item at the specified index.

    Methods

    Add(Object)

    Adds an item to the list of items for a ComboBoxBaseDataBound.

    Declaration
    public int Add(object item)
    Parameters
    Type Name Description
    System.Object item

    An object representing the item to add to the collection.

    Returns
    Type Description
    System.Int32

    The zero-based index of the item in the collection.

    AddRange(Object[])

    Adds an array of items to the list of items for a ComboBoxBaseDataBound.

    Declaration
    public void AddRange(object[] items)
    Parameters
    Type Name Description
    System.Object[] items

    An array of objects to add to the list.

    Clear()

    Removes all items from the ComboBoxBaseDataBound.

    Declaration
    public virtual void Clear()

    Contains(Object)

    Indicates whether the specified item is located within the collection.

    Declaration
    public virtual bool Contains(object value)
    Parameters
    Type Name Description
    System.Object value

    An object representing the item to locate in the collection.

    Returns
    Type Description
    System.Boolean

    true if the item is located within the collection; false otherwise.

    CopyTo(Object[], Int32)

    Copies the entire collection into an existing array of objects at a specified location within the array.

    Declaration
    public void CopyTo(object[] dest, int arrayIndex)
    Parameters
    Type Name Description
    System.Object[] dest

    The object array to copy the collection to.

    System.Int32 arrayIndex

    The location in the destination array to copy the collection to.

    GetEnumerator()

    Returns an enumerator that can be used to iterate through the item collection.

    Declaration
    public virtual IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An System.Collections.IEnumerator object that represents the item collection.

    IndexOf(Object)

    Declaration
    public virtual int IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32

    Insert(Int32, Object)

    Inserts an item into the collection at the specified index.

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

    The zero-based index location where the item is inserted.

    System.Object item

    An object representing the item to insert.

    OnCollectionChange(ComboBoxBaseDataBound.CollectionChangeOperation, Int32, Object)

    Declaration
    protected void OnCollectionChange(ComboBoxBaseDataBound.CollectionChangeOperation operation, int index, object item)
    Parameters
    Type Name Description
    ComboBoxBaseDataBound.CollectionChangeOperation operation
    System.Int32 index
    System.Object item

    Remove(Object)

    Removes the specified item from the ComboBoxBaseDataBound.

    Declaration
    public virtual void Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to remove from the list.

    RemoveAt(Int32)

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

    Explicit Interface Implementations

    ICollection.CopyTo(Array, Int32)

    Declaration
    void ICollection.CopyTo(Array dest, int index)
    Parameters
    Type Name Description
    System.Array dest
    System.Int32 index

    ICollection.IsSynchronized

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type Description
    System.Boolean

    ICollection.SyncRoot

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type Description
    System.Object

    IList.Add(Object)

    Declaration
    int IList.Add(object item)
    Parameters
    Type Name Description
    System.Object item
    Returns
    Type Description
    System.Int32

    IList.IsFixedSize

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type Description
    System.Boolean

    IDisposable.Dispose()

    Declaration
    void IDisposable.Dispose()

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved