Skip to content

Appearance Property

Description

Gets the appearance of the chart.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Appearance() As [ChartAppearance](XtremeChartControl~ChartAppearance.md)

Remarks

Chart Appearance contains methods to load pre-set palettes and appearances for the chart and chart series to use. Appearances affect only the colors of the chart itself; they do not affect the series. Palettes affect the colors of the series and legend but do not affect the actual chart.

Use the SetAppearance and SetPalette methods to set the appearance and palette.

Example

Dim AppearanceList
Dim AppearanceIndex As Long

Dim PaletteList
Dim PaletteIndex As Long

AppearanceList = Array("Nature", "Black", "Gray")
AppearanceIndex = 0

PaletteList = Array("Victorian", "Vibrant Pastel", "Vibrant", "Tropical", "Summer", "Spring Time", "Rainbow", "Purple", "Primary Colors", _
    "Postmodern", "Photodesign", "Pastel", "Office", "Orange Green", "Nature", "Natural", "Impresionism", "Illustration", "Harvest", _
    "Green Brown", "Green Blue", "Green", "Gray", "Four Color", "Fire", "Earth Tone", "Danville", "Caribbean", "Cappuccino", "Blue Gray", "Blue")

PaletteIndex = 9

ActiveChartControl.Content.Appearance.SetAppearance AppearanceList(AppearanceIndex)
ActiveChartControl.Content.Appearance.SetPalette PaletteList(PaletteIndex)

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.