Palette.Add(Color) Method

Appends a new palette entry with the specified color to the current palette.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.2.dll


public int Add(
    Color color
Public Function Add(
    color As Color
) As Integer


Name Type Description
color Color

A Color object that specifies the first and second colors of the palette entry. This value is assigned to the PaletteEntry.Color property.


Type Description

An integer value indicating the position at which the new element was inserted.


This method creates a new PaletteEntry object, initializes it with the specified values and adds it to the end of the collection.

Note: In this case the PaletteEntry.Color2 property will also be set to the specified color.

See Also