corelibraries-devexpress-dot-xtracharts-c2ea1767.md
Helps to generate series view-specific images the Chart Designer uses.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public static class AppearanceImageHelper
Public Module AppearanceImageHelper
The AppearanceImageHelper.CreateImage methods allow you to create images as in the Appearance Palette below:
This example demonstrates how to create preview images like the following:
Image image = AppearanceImageHelper.CreateImage(
ViewType.ManhattanBar,
chartControl.AppearanceRepository["Light"],
chartControl.PaletteRepository["Office"],
0);
Dim image As 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.
Object AppearanceImageHelper
See Also