New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a legend control for displaying chart series information. This control extends RadView to provide legend functionality for chart controls.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.Chart

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

C#
public class RadLegend : RadView, IView, IElement, ITransform

Inheritance: objectRadViewRadLegend

Implements: IElementITransformIView

Inherited Members RadView.OnNativeControlLoaded()RadView.OnNativeControlUnloaded()RadView.IsDefaultValue(string)RadView.OnPropertyChanged(string)RadView.OnHandlerChanged()RadView.IsOperational...

Constructors

C#
public RadLegend()

Fields

Identifies the LegendItemFontColor bindable property.

C#
public static readonly BindableProperty LegendItemFontColorProperty

Identifies the LegendItemFontSize bindable property.

C#
public static readonly BindableProperty LegendItemFontSizeProperty

Identifies the LegendItemIconSize bindable property.

C#
public static readonly BindableProperty LegendItemIconSizeProperty

LegendProviderProperty

BindableProperty

Identifies the LegendProvider bindable property.

C#
public static readonly BindableProperty LegendProviderProperty

OrientationProperty

BindableProperty

Identifies the Orientation bindable property.

C#
public static readonly BindableProperty OrientationProperty

Properties

Gets or sets the font color for legend item text.

C#
public Color LegendItemFontColor { get; set; }
Property Value:

A Color value that defines the text color of legend items.

Gets or sets the font size for legend item text.

C#
public double LegendItemFontSize { get; set; }
Property Value:

A double value representing the font size in device-independent units. The default value is 15.

Gets or sets the size of the legend item icons.

C#
public Size LegendItemIconSize { get; set; }
Property Value:

A Size structure that defines the width and height of legend item icons. The default value is 20x20.

Gets or sets the chart that provides legend information.

C#
public RadChartBase LegendProvider { get; set; }
Property Value:

A RadChartBase instance that serves as the legend provider.

Gets or sets the orientation of the legend items.

C#
public LegendOrientation Orientation { get; set; }
Property Value:

A LegendOrientation value that determines how legend items are arranged. The default value is Vertical.