menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearGaugeLabelBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LinearGaugeLabelBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    LinearGaugeLabelBuilder
    Namespace: Syncfusion.EJ2.LinearGauge
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class LinearGaugeLabelBuilder : ControlBuilder

    Constructors

    LinearGaugeLabelBuilder()

    Declaration
    public LinearGaugeLabelBuilder()

    LinearGaugeLabelBuilder(LinearGaugeLabel)

    Declaration
    public LinearGaugeLabelBuilder(LinearGaugeLabel model)
    Parameters
    Type Name Description
    LinearGaugeLabel model

    Methods

    Font(LinearGaugeFont)

    Sets and gets the options for customizing the style of the text in axis labels.

    Declaration
    public LinearGaugeLabelBuilder Font(LinearGaugeFont value)
    Parameters
    Type Name Description
    LinearGaugeFont value
    Returns
    Type
    LinearGaugeLabelBuilder

    Font(Action<LinearGaugeFontBuilder>)

    Declaration
    public LinearGaugeLabelBuilder Font(Action<LinearGaugeFontBuilder> font)
    Parameters
    Type Name Description
    System.Action<LinearGaugeFontBuilder> font
    Returns
    Type
    LinearGaugeLabelBuilder

    Format(String)

    Sets and gets the format for the axis label. This property accepts any global format string like 'C', 'n1', 'P' etc. Also accepts placeholder like '{value}°C' in which value represent the axis label e.g. 20°C.

    Declaration
    public LinearGaugeLabelBuilder Format(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    LinearGaugeLabelBuilder

    Offset(Double)

    Sets and gets the offset value from where the labels must be placed from the axis in linear gauge.

    Declaration
    public LinearGaugeLabelBuilder Offset(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    LinearGaugeLabelBuilder

    Position(Position)

    Sets and gets the position of the axis label in linear gauge.

    Declaration
    public LinearGaugeLabelBuilder Position(Position value)
    Parameters
    Type Name Description
    Position value
    Returns
    Type
    LinearGaugeLabelBuilder

    UseRangeColor(Boolean)

    Enables or disables to use the color of the ranges in the labels of the linear gauge.

    Declaration
    public LinearGaugeLabelBuilder UseRangeColor(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    LinearGaugeLabelBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved