Back to Devexpress

AppearanceImageHelper Class

corelibraries-devexpress-dot-xtracharts-c2ea1767.md

latest3.4 KB
Original Source

AppearanceImageHelper Class

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

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public static class AppearanceImageHelper
vb
Public Module AppearanceImageHelper

Remarks

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

Example

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

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

The code listed above uses the following API members:

MemberDescription
AppearanceImageHelperHelps to generate series view-specific images the Chart Designer uses.
AppearanceImageHelper.CreateImageCreates the specified series view type’s image.
ChartControl.AppearanceRepositoryReturns the chart appearance repository.
ChartControl.PaletteRepositoryReturns 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

AppearanceImageHelper Members

DevExpress.XtraCharts Namespace