Legends Appearance
This document describes how the legend’s appearance can be customized at design time.
With XtraCharts, it is possible to completely customize the legend’s appearance in a large variety of ways:
- To show or hide items’ markers within the legend, use the Legend.MarkerVisible property.
- To define the size of the legend markers (in pixels), use the LegendBase.MarkerSize property.
- Specify the appropriate Legend.MarkerMode property value to use checkboxes instead of markers or both.
- To control the visibility of the legend itself, use the LegendBase.Visibility property.
The appearance of the legend text can be customized using the following set of properties: LegendBase.DXFont, LegendBase.EnableAntialiasing, and LegendBase.TextColor.
The LegendBase.BackColor, LegendBase.BackImage and LegendBase.FillStyle properties determine the legend’s background appearance.
You can also customize the legend’s borders and shadow appearance.
To access the legend border options, use the LegendBase.Border property. You can customize their appearance using the BorderBase.Color, BorderBase.Thickness and BorderBase.Visibility properties.
To access the legend shadow options, use the LegendPageTab.Shadow property. You can customize its appearance using the Shadow.Color, Shadow.Size and Shadow.Visible properties.