alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class MapsFontSettings

    Provides customization options for the font settings used in the Maps component, including text color, style, and size.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsFontSettings
    MapsBubbleTooltipTextStyle
    MapsLayerDataLabelTextStyle
    MapsLayerTooltipTextStyle
    MapsLegendTextStyle
    MapsLegendTitleStyle
    MapsMarkerTooltipTextStyle
    MapsSubtitleTextStyle
    MapsTitleTextStyle
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    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 MapsFontSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    MapsFontSettings()

    Declaration
    public MapsFontSettings()

    Properties

    Color

    Gets or sets the color of the text used in data labels, legends, and other textual elements of the maps component.

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

    A string representing the color of the text (e.g., "red", "#FF0000").

    Remarks

    The color specified will apply to all text elements in the maps where font settings are utilized.

    FontFamily

    Gets or sets the font family for the text used in data labels, legends, and other textual elements of the maps component.

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

    A string specifying the font family used (e.g., "Arial", "Verdana").

    Remarks

    This property allows you to customize the typeface of the text across the maps component.

    FontStyle

    Gets or sets the font style for the text used in data labels, legends, and other textual elements of the maps component.

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

    A string indicating the font style (e.g., "normal", "italic").

    Remarks

    Use this property to set the visual style of the text elements.

    FontWeight

    Gets or sets the font weight for the text used in data labels, legends, and other textual elements of the maps component.

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

    A string representing the font weight (e.g., "normal", "bold").

    Remarks

    The font weight helps to define the thickness or boldness of the text displayed.

    Opacity

    Gets or sets the opacity for the text used in data labels, legends, and other textual elements of the maps component.

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

    A double value ranging from 0 to 1, where 0 is fully transparent and 1 is fully opaque.

    Remarks

    Adjusting the opacity allows you to blend text elements with the background or other map features.

    Size

    Gets or sets the size of the text used in data labels, legends, and other textual elements.

    Declaration
    [Parameter]
    public virtual string Size { get; set; }
    Property Value
    Type Description
    string

    A string that defines the size of the text (e.g., "12px").

    Remarks

    Set the font size to achieve the desired prominence of text within the maps component.

    Methods

    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)

    Implements

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