Skip to main content

AppearanceImageHelper Class

Helps to generate series view-specific images the Chart Designer uses.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public static class AppearanceImageHelper

Remarks

The AppearanceImageHelper.CreateImage methods allow you to create images as in the Appearance Palette below:

Chart Designer - Appearance Palette

Example

This example demonstrates how to create preview images like the following:

Image example

Image image = AppearanceImageHelper.CreateImage(
                ViewType.ManhattanBar, 
                chartControl.AppearanceRepository["Light"], 
                chartControl.PaletteRepository["Office"], 
                0);            

The code listed above uses the following API members:

Member Description
AppearanceImageHelper Helps to generate series view-specific images the Chart Designer uses.
AppearanceImageHelper.CreateImage Creates the specified series view type’s image.
ChartControl.AppearanceRepository Returns the chart appearance repository.
ChartControl.PaletteRepository Returns the chart palette repository.

Note

If necessary, use the ChartControl.AppearanceName and ChartControl.PaletteName properties to obtain names of the appearance and palette the Chart Control currently uses.

Inheritance

Object
AppearanceImageHelper
See Also