Class ChartLegend
Inheritance
System.Object
ChartLegend
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
Declaration
public ChartCornerRadius CornerRadius { get; set; }
Property Value
DockPosition
Declaration
public ChartDock DockPosition { get; set; }
Property Value
IconHeight
Declaration
public double IconHeight { get; set; }
Property Value
IconVisibility
Declaration
public Visibility IconVisibility { get; set; }
Property Value
IconWidth
Declaration
public double IconWidth { get; set; }
Property Value
ItemMarginBottom
Declaration
public double ItemMarginBottom { get; set; }
Property Value
ItemMarginLeft
Declaration
public double ItemMarginLeft { get; set; }
Property Value
ItemMarginRight
Declaration
public double ItemMarginRight { get; set; }
Property Value
ItemMarginTop
Declaration
public double ItemMarginTop { get; set; }
Property Value
LabelStyle
Declaration
public ChartLegendLabelStyle LabelStyle { get; }
Property Value
LegendPosition
Declaration
public LegendPosition LegendPosition { get; set; }
Property Value
MarginBottom
Gets or sets double value that represents the bottom margin of legend.
Declaration
public double MarginBottom { get; set; }
Property Value
MarginLeft
Gets or sets double value that represents the left margin of legend.
Declaration
public double MarginLeft { get; set; }
Property Value
MarginRight
Gets or sets double value that represents the right margin of legend.
Declaration
public double MarginRight { get; set; }
Property Value
MarginTop
Gets or sets double value that represents the top margin of legend.
Declaration
public double MarginTop { get; set; }
Property Value
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
OffsetX
Declaration
public float OffsetX { get; set; }
Property Value
OffsetY
Declaration
public float OffsetY { get; set; }
Property Value
Orientation
Declaration
public ChartOrientation Orientation { get; set; }
Property Value
OverflowMode
Declaration
public ChartLegendOverflowMode OverflowMode { get; set; }
Property Value
PathEffect
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
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
Title
Declaration
public ChartLegendTitleView Title { get; }
Property Value
ToggleSeriesVisibility
Declaration
public bool ToggleSeriesVisibility { get; set; }
Property Value
Visibility
Gets or sets Visibility that indicates legend's visibility.
Declaration
public Visibility Visibility { get; set; }
Property Value
Methods
GetView()
Declaration
Returns
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()