Skip to main content
A newer version of this page is available. .

Palette.Add(Color, Color) Method

Appends a new palette entry with the specified first and second colors to the current palette.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v19.1.dll

Declaration

public int Add(
    Color color,
    Color color2
)

Parameters

Name Type Description
color Color

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

color2 Color

A Color object that specifies the second color of the palette entry. This value is assigned to the PaletteEntry.Color2 property.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(Color, Color) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also