Class ColorCellCollection
Represents the collection of color cell.
Inheritance
System.Object
ColorCellCollection
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ColorCellCollection : CollectionBase
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 |
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
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 |