menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class MapLegendSetting

    Represents the MapLegendSetting. To render this, create an instance of the MapLegendSetting class, and set required properties.

    Inheritance
    System.Object
    MapLegendSetting
    Namespace: Syncfusion.SfMaps.XForms
    Assembly: Syncfusion.SfMaps.XForms.dll
    Syntax
    public class MapLegendSetting : Element, IThemeElement

    Constructors

    MapLegendSetting()

    Initializes a new instance of the MapLegendSetting class. Using this instance, you can set a value for the required properties.

    Declaration
    public MapLegendSetting()

    Fields

    FontAttributesProperty

    Gets or sets a value of the FontFamily property for the legends. It is used to change the font style of the legend labels.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FontFamilyProperty

    Gets or sets a value of the FontFamily property for the legend. It is used to change the font family of the legend labels.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FontSizeProperty

    Gets or sets the font size property of the legend labels. It is used to customize the font size of legend labels.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HorizontalAlignmentProperty

    Gets or sets a value of the HorizontalAlignment property. It aligns the legends Horizontally based on alignment.

    Declaration
    public static readonly BindableProperty HorizontalAlignmentProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    IconSizeProperty

    Gets or sets the iconSize property value of the legends. It changes the icon size value of legend. This is a bindable property.

    Declaration
    public static readonly BindableProperty IconSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ItemMarginProperty

    Gets or sets a value of the spacing property for the legends. It customizes the spacing between the legend of the maps.

    Declaration
    public static readonly BindableProperty ItemMarginProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LegendIconProperty

    Gets or sets the LegendIcon property of the legends. You can set different types of legend icon type to legends.

    Declaration
    public static readonly BindableProperty LegendIconProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LegendPositionProperty

    Gets or sets the position property of the legends. It customizes the horizontal and vertical positions of the legends.

    Declaration
    public static readonly BindableProperty LegendPositionProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LegendTypeProperty

    Gets or sets the LegendType. It decides whether the legend should need to render for shapes or bubbles. The default value is "Layers".

    Declaration
    public static readonly BindableProperty LegendTypeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowLegendProperty

    Gets or sets a value that indicates whether to show the map legends or not. It customizes the visibility of legends.

    Declaration
    public static readonly BindableProperty ShowLegendProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TextColorProperty

    Gets or sets a value of the textColor property for legend. It is used to change the text color of the legend labels.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    VerticalAlignmentProperty

    Gets or sets the value of the VerticalAlignment property. It aligns the legends vertically based on alignment.

    Declaration
    public static readonly BindableProperty VerticalAlignmentProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    FontAttributes

    Gets or sets a value of the FontFamily for the legends. It changes the font style of the legend labels.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type
    Xamarin.Forms.FontAttributes

    FontFamily

    Gets or sets a value of the FontFamily for the legend. It is used to change the font family of legend labels.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type
    System.String

    FontSize

    Gets or sets the font size of the legend labels. It is used to customize the font size of the legend labels.

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

    HorizontalAlignment

    Gets or sets a value of the HorizontalAlignment property. It aligns the legends horizontally based on alignment.

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

    IconSize

    Gets or sets the iconSize value of the legends. It changes the icon size value of legend. This is a bindable property.

    Declaration
    public Size IconSize { get; set; }
    Property Value
    Type
    Xamarin.Forms.Size

    ItemMargin

    Gets or sets a value of the spacing property for the legends. It customizes the spacing between the legend of the maps.

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

    LegendIcon

    Gets or sets the LegendIcon of the legend. You can set different types of legend icon type to legends.

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

    LegendPosition

    Gets or sets the position of the legend. It customizes the horizontal and vertical positions of the legends.

    Declaration
    public Point LegendPosition { get; set; }
    Property Value
    Type
    Xamarin.Forms.Point

    LegendType

    Gets or sets a value indicating whether the LegendType defines whether the legend should need to render for shapes or bubbles. The default value is "Layers".

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

    ShowLegend

    Gets or sets a value indicating whether to show the legends. It is used to customize the visibility of the legends.

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

    TextColor

    Gets or sets a value of the textColor property for legend. It is used to change the text color of the legend labels.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    VerticalAlignment

    Gets or sets a value of the VerticalAlignment property. It aligns the legends vertically based on alignment.

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type
    VerticalAlignment
    Back to top Generated by DocFX
    OSZAR »
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved
    OSZAR »