Class ColorItemCollection
Represents the collection of color items for ColorPickerUIAdv.
Inheritance
Implements
Inherited Members
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 |
---|
ColorUIAdvGroup |
IsBaseCollection
Gets the base collection value.
Declaration
public bool IsBaseCollection { get; }
Property Value
Type |
---|
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 |
---|
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
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
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 |
---|
System.EventHandler |