alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsDataLabelSettings

    Defines the options for customizing the data labels in the map layer.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsDataLabelSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsDataLabelSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    MapsDataLabelSettings()

    Declaration
    public MapsDataLabelSettings()

    Properties

    AnimationDuration

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

    Declaration
    [Parameter]
    public double AnimationDuration { get; set; }
    Property Value
    Type Description
    double

    Accepts the double value to modify the duration of animation of the label.

    Remarks

    You can modify this value to enable the animation in the data labels. If the value is set as 0, animation will be disabled.

    ChildContent

    Gets or sets the content of the UI element.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment used to specify the content to be rendered inside the component.

    Remarks

    You can include custom content for rendering within the component using this property.

    Fill

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

    Declaration
    [Parameter]
    public string Fill { get; set; }
    Property Value
    Type
    string

    IntersectionAction

    Gets or sets the intersection action for the data-labels in maps.

    Declaration
    [Parameter]
    public IntersectAction IntersectionAction { get; set; }
    Property Value
    Type
    IntersectAction

    LabelPath

    Gets or sets the path from the data source based on which the data-labels gets rendered.

    Declaration
    [Parameter]
    public string LabelPath { get; set; }
    Property Value
    Type
    string

    LabelTemplate

    Gets or sets the template for the data-labels in maps.

    Declaration
    [Parameter]
    public RenderFragment<object> LabelTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment<object>

    A RenderFragment specifying the custom template for data labels.

    Remarks

    This property enables the use of custom templates for displaying data labels on the map.

    Opacity

    Gets or sets the opacity for the color of the data-labels in maps.

    Declaration
    [Parameter]
    public double Opacity { get; set; }
    Property Value
    Type
    double

    Rx

    Gets or sets the x position for the data-labels.

    Declaration
    [Parameter]
    public double Rx { get; set; }
    Property Value
    Type
    double

    Ry

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

    Declaration
    [Parameter]
    public double Ry { get; set; }
    Property Value
    Type
    double

    SmartLabelMode

    Gets or sets the label mode for the data-labels.

    Declaration
    [Parameter]
    public SmartLabelMode SmartLabelMode { get; set; }
    Property Value
    Type
    SmartLabelMode

    Visible

    Gets or sets a value indicating whether or not to display the data-labels in maps.

    Declaration
    [Parameter]
    public bool Visible { get; set; }
    Property Value
    Type
    bool

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose(bool)

    Disposes the property values during the destroy of the component that is hold up for the execution of the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    OnInitializedAsync method is called when the component has received its initial parameters.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved