menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartLegend - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartLegend

    Inheritance
    System.Object
    ChartLegend
    Namespace: Com.Syncfusion.Charts
    Assembly: Syncfusion.SfChart.Android.dll
    Syntax
    public class ChartLegend : Object

    Constructors

    ChartLegend(Context, SfChart)

    Declaration
    public ChartLegend(Context context, SfChart chart)
    Parameters
    Type Name Description
    Android.Content.Context context
    SfChart chart

    Properties

    BackgroundColor

    Gets or sets color value that represents the background of legend.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    CornerRadius

    Gets or sets ChartCornerRadius, that indicates the radius value in legend corner.

    Declaration
    public ChartCornerRadius CornerRadius { get; set; }
    Property Value
    Type
    ChartCornerRadius

    DockPosition

    Declaration
    public ChartDock DockPosition { get; set; }
    Property Value
    Type
    ChartDock

    IconHeight

    Declaration
    public double IconHeight { get; set; }
    Property Value
    Type
    System.Double

    IconVisibility

    Declaration
    public Visibility IconVisibility { get; set; }
    Property Value
    Type
    Visibility

    IconWidth

    Declaration
    public double IconWidth { get; set; }
    Property Value
    Type
    System.Double

    ItemMarginBottom

    Declaration
    public double ItemMarginBottom { get; set; }
    Property Value
    Type
    System.Double

    ItemMarginLeft

    Declaration
    public double ItemMarginLeft { get; set; }
    Property Value
    Type
    System.Double

    ItemMarginRight

    Declaration
    public double ItemMarginRight { get; set; }
    Property Value
    Type
    System.Double

    ItemMarginTop

    Declaration
    public double ItemMarginTop { get; set; }
    Property Value
    Type
    System.Double

    LabelStyle

    Declaration
    public ChartLegendLabelStyle LabelStyle { get; }
    Property Value
    Type
    ChartLegendLabelStyle

    LegendPosition

    Declaration
    public LegendPosition LegendPosition { get; set; }
    Property Value
    Type
    LegendPosition

    MarginBottom

    Gets or sets double value that represents the bottom margin of legend.

    Declaration
    public double MarginBottom { get; set; }
    Property Value
    Type
    System.Double

    MarginLeft

    Gets or sets double value that represents the left margin of legend.

    Declaration
    public double MarginLeft { get; set; }
    Property Value
    Type
    System.Double

    MarginRight

    Gets or sets double value that represents the right margin of legend.

    Declaration
    public double MarginRight { get; set; }
    Property Value
    Type
    System.Double

    MarginTop

    Gets or sets double value that represents the top margin of legend.

    Declaration
    public double MarginTop { get; set; }
    Property Value
    Type
    System.Double

    MaxWidth

    Gets or sets double value that used to customize legend ItemsLayout width when OverflowMode value is Wrap.

    Declaration
    public double MaxWidth { get; set; }
    Property Value
    Type
    System.Double

    OffsetX

    Declaration
    public float OffsetX { get; set; }
    Property Value
    Type
    System.Single

    OffsetY

    Declaration
    public float OffsetY { get; set; }
    Property Value
    Type
    System.Single

    Orientation

    Declaration
    public ChartOrientation Orientation { get; set; }
    Property Value
    Type
    ChartOrientation

    OverflowMode

    Gets or sets ChartLegendOverflowMode value that indicates items overflow action in legend.

    Declaration
    public ChartLegendOverflowMode OverflowMode { get; set; }
    Property Value
    Type
    ChartLegendOverflowMode

    PathEffect

    Gets or sets the PathEffect of the ChartLegend border.

    Declaration
    public PathEffect PathEffect { get; set; }
    Property Value
    Type
    Android.Graphics.PathEffect

    Series

    Gets or sets ChartSeries, which indicates whether the legend items should be generated based on this series data points.

    Declaration
    public ChartSeries Series { get; set; }
    Property Value
    Type
    ChartSeries
    Remarks

    Com.Syncfusion.Charts.ChartLegend.toggleSeriesVisibility will not works for cartesian and polar series

    StrokeColor

    Gets or sets color value that represents the border line color of legend.

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    StrokeWidth

    Gets or sets float value that represents the legend's border line thickness.

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    Title

    Declaration
    public ChartLegendTitleView Title { get; }
    Property Value
    Type
    ChartLegendTitleView

    ToggleSeriesVisibility

    Declaration
    public bool ToggleSeriesVisibility { get; set; }
    Property Value
    Type
    System.Boolean

    Visibility

    Gets or sets Visibility that indicates legend's visibility.

    Declaration
    public Visibility Visibility { get; set; }
    Property Value
    Type
    Visibility

    Methods

    GetView()

    Declaration
    protected View GetView()
    Returns
    Type
    Android.Views.View

    Measure(RectangleF)

    Declaration
    public RectangleF Measure(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect
    Returns
    Type
    System.Drawing.RectangleF

    ScheduleUpdateArea()

    Declaration
    protected virtual void ScheduleUpdateArea()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved