Class ColorCellCollection
Represents the collection of color cell.
Inheritance
System.Object
System.Collections.CollectionBase
ColorCellCollection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.OnClear()
System.Collections.CollectionBase.OnClearComplete()
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ColorCellCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
ColorCellCollection(HexagonColorControl)
Initialize a new instance of the ColorCellCollection class.
Declaration
public ColorCellCollection(HexagonColorControl control)
Parameters
Type | Name | Description |
---|---|---|
HexagonColorControl | control | An instance of HexagonColorControl. |
Properties
Item[Int32]
Gets or sets the index value of color cell.
Declaration
public ColorCell this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
ColorCell |
Methods
Add(ColorCell)
Adds the color cell in ColorCellCollection.
Declaration
public void Add(ColorCell cell)
Parameters
Type | Name | Description |
---|---|---|
ColorCell | cell | The color cell value. |
Contains(ColorCell)
Check whether the list contains the color cell or not in ColorCellCollection.
Declaration
public bool Contains(ColorCell cell)
Parameters
Type | Name | Description |
---|---|---|
ColorCell | cell | The color cell value. |
Returns
Type | Description |
---|---|
System.Boolean | Returns the color value of cell. |
IndexOf(ColorCell)
Returns the index value of color cell in ColorCellCollection.
Declaration
public int IndexOf(ColorCell cell)
Parameters
Type | Name | Description |
---|---|---|
ColorCell | cell | The color cell value. |
Returns
Type | Description |
---|---|
System.Int32 | The index value of cell. |
Insert(Int32, ColorCell)
Inserts of a color cell in ColorCellCollection.
Declaration
public void Insert(int index, ColorCell cell)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index value. |
ColorCell | cell | The color cell 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(ColorCell)
Removes the color cell from ColorCellCollection.
Declaration
public void Remove(ColorCell cell)
Parameters
Type | Name | Description |
---|---|---|
ColorCell | cell | The color cell value. |
Events
CollectionChanged
Occurs when the collection has changed.
Declaration
public event EventHandler CollectionChanged
Event Type
Type |
---|
System.EventHandler |
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable