• Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
Class MapsDataLabelSettings - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MapsDataLabelSettings

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    MapsDataLabelSettings
    Namespace: Syncfusion.EJ2.Maps
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class MapsDataLabelSettings : EJTagHelper

    Constructors

    MapsDataLabelSettings()

    Declaration
    public MapsDataLabelSettings()

    Properties

    AnimationDuration

    Gets and sets the duration time for animating the data label.

    Declaration
    public double AnimationDuration { get; set; }
    Property Value
    TypeDescription
    System.Double

    The default value is 0

    Border

    Gets or sets the options for customizing the style properties of the border of the data labels.

    Declaration
    public MapsBorder Border { get; set; }
    Property Value
    TypeDescription
    MapsBorder

    The default value is null

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Fill

    Gets or sets the background color for the data labels in maps.

    Declaration
    public string Fill { get; set; }
    Property Value
    TypeDescription
    System.String

    The default value is "black"

    IntersectionAction

    Gets or sets the action to be performed when a data-label intersect with other data labels in maps.

    Declaration
    public IntersectAction IntersectionAction { get; set; }
    Property Value
    TypeDescription
    IntersectAction

    The default value is IntersectAction.None

    LabelPath

    Gets or sets the field name from the data source based on which the data labels gets rendered. The field name from the GeoJSON data can also be set.

    Declaration
    public string LabelPath { get; set; }
    Property Value
    TypeDescription
    System.String

    The default value is ""

    Opacity

    Gets or sets the opacity of the data labels in maps.

    Declaration
    public double Opacity { get; set; }
    Property Value
    TypeDescription
    System.Double

    The default value is 1

    Rx

    Gets or sets the x position for the data labels.

    Declaration
    public double Rx { get; set; }
    Property Value
    TypeDescription
    System.Double

    The default value is 10

    Ry

    Gets or sets the y position for the data labels in maps.

    Declaration
    public double Ry { get; set; }
    Property Value
    TypeDescription
    System.Double

    The default value is 10

    SmartLabelMode

    Gets or sets the action to be performed when the data labels exceeds the shape over which it is rendered.

    Declaration
    public SmartLabelMode SmartLabelMode { get; set; }
    Property Value
    TypeDescription
    SmartLabelMode

    The default value is SmartLabelMode.None

    Template

    Gets or sets the template for the data labels to render custom elements.

    Declaration
    public string Template { get; set; }
    Property Value
    TypeDescription
    System.String

    The default value is ""

    TextStyle

    Gets or sets the options for customizing the styles of the text in data labels.

    Declaration
    public MapsFont TextStyle { get; set; }
    Property Value
    TypeDescription
    MapsFont

    The default value is null

    Visible

    Enables or disables the visibility of data labels in maps.

    Declaration
    public bool Visible { get; set; }
    Property Value
    TypeDescription
    System.Boolean

    The default value is false

      Back to top Generated by DocFX
      Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved