WinForms

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

    Show / Hide Table of Contents

    Class ColorItemCollection

    Represents the collection of color items for ColorPickerUIAdv.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    ColorItemCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    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 ColorItemCollection : CollectionBase, IList, ICollection, IEnumerable

    Constructors

    ColorItemCollection()

    Initialize a new instance of the ColorItemCollection class.

    Declaration
    public ColorItemCollection()

    ColorItemCollection(ColorUIAdvGroup, Boolean)

    Initialize a new instance of the ColorItemCollection class.

    Declaration
    public ColorItemCollection(ColorUIAdvGroup group, bool isBaseCollection)
    Parameters
    Type Name Description
    ColorUIAdvGroup group

    The color group value.

    System.Boolean isBaseCollection

    The bool value of base collection.

    Properties

    Group

    Gets the color group value.

    Declaration
    public ColorUIAdvGroup Group { get; }
    Property Value
    Type Description
    ColorUIAdvGroup

    IsBaseCollection

    Gets the base collection value.

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

    Item[Int32]

    Gets or sets the index value of coloritem.

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

    The index value.

    Property Value
    Type Description
    ColorItem

    Methods

    Add(ColorItem)

    Adds the color item for the ColorItemCollection.

    Declaration
    public void Add(ColorItem item)
    Parameters
    Type Name Description
    ColorItem item

    The color item.

    Contains(ColorItem)

    Indicates whether the color item values are present in the list or not in ColorItemCollection.

    Declaration
    public bool Contains(ColorItem item)
    Parameters
    Type Name Description
    ColorItem item

    The color item value.

    Returns
    Type Description
    System.Boolean

    The color item in the collection.

    IndexOf(ColorItem)

    Fetch the index of the color item in ColorItemCollection.

    Declaration
    public int IndexOf(ColorItem item)
    Parameters
    Type Name Description
    ColorItem item

    The item value of color.

    Returns
    Type Description
    System.Int32

    The index value of an item.

    Insert(Int32, ColorItem)

    Insert the color items with specified index range of ColorItemCollection.

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

    The index value.

    ColorItem item

    The color item value.

    OnCollectionChanged()

    Declaration
    protected void OnCollectionChanged()

    OnInsert(Int32, Object)

    Declaration
    protected override void OnInsert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)

    OnInsertComplete(Int32, Object)

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

    Remove(ColorItem)

    Removes the color item from ColorItemCollection.

    Declaration
    public void Remove(ColorItem item)
    Parameters
    Type Name Description
    ColorItem item

    The color item.

    Events

    CollectionChanged

    Occurs when the collections are changed.

    Declaration
    public event EventHandler CollectionChanged
    Event Type
    Type Description
    System.EventHandler

    Implements

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

    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