Palette.Add(Color, Color) Method
In This Article
Appends a new palette entry with the specified first and second colors to the current palette.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
color | Color | A Color object that specifies the first color of the palette entry. This value is assigned to the Palette |
color2 | Color | A Color object that specifies the second color of the palette entry. This value is assigned to the Palette |
#Returns
Type | Description |
---|---|
Int32 | An integer value indicating the position at which the new element was inserted. |
#Remarks
This method creates a new PaletteEntry object, initializes it with the specified values and adds it to the end of the collection.
See Also