alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class LinearGaugeFontSettings

    Defines the options for customizing the fonts used in the linear gauge component. Provides properties to control text appearance including color, font family, style, weight, opacity, and size.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    LinearGaugeFontSettings
    LinearGaugeAnnotationFont
    LinearGaugeAxisLabelFont
    LinearGaugeRangeTooltipTextStyle
    LinearGaugeTitleStyle
    LinearGaugeTooltipTextStyle
    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.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.LinearGauge
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LinearGaugeFontSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    LinearGaugeFontSettings()

    Declaration
    public LinearGaugeFontSettings()

    Properties

    Color

    Gets or sets the font color for the text.

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

    A string representing the text color, specified in hex, rgba, or any valid CSS color format.

    Remarks

    This property allows customization of text color to ensure it fits the visual design of the gauge.

    FontFamily

    Gets or sets the font family for the text.

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

    A string that specifies the name of the font family for rendering text.

    Remarks

    The font family influences the typography style of the text elements within the gauge.

    FontStyle

    Gets or sets the style of the text.

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

    A string indicating the style of the text, such as normal, italic, or oblique.

    Remarks

    Text styling is key for distinguishing emphasis and simulating handwriting in the display area.

    FontWeight

    Gets or sets the font weight of the text.

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

    A string specifying the weight of the font, ranging from light to bold.

    Remarks

    This property adjusts text boldness, affecting readability and emphasis within the display.

    Opacity

    Gets or sets the opacity of the text, with 0 being fully transparent and 1 being fully opaque.

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

    A double representing the opacity level, defaulting to 1.

    Remarks

    Text opacity allows for overlay effects and easier integration with background elements.

    Size

    Gets or sets the size of the font in text.

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

    A string defining the size of the font, such as "12px", "larger", etc.

    Remarks

    The font size is crucial in ensuring clear text readability and aesthetic balance in the gauge display.

    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)

    OnParametersSetAsync()

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

    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