Skip to content

Legend Property

Description

Gets the legend that is displayed for this chart.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Legend() As [ChartLegend](XtremeChartControl~ChartLegend.md)

Return Type

Reference to the legend that is displayed for this chart.

Remarks

The legend has many customizable options including background color, direction, column count, marker size, border size, and legend alignment. The legend also supports XML markup snippets for the text of legend items.

Legend Columns

Label Direction

Legend Markers

Example

ChartControl.Content.Legend.Visible = True  
ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendFar  
ChartControl.Content.Legend.ColumnCount = 3

See Also


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