menu

ASP.NET Core - EJ2

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

    Show / Hide Table of Contents

    Class LinearGaugeLabel

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    LinearGaugeLabel
    Namespace: Syncfusion.EJ2.LinearGauge
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class LinearGaugeLabel : EJTagHelper

    Constructors

    LinearGaugeLabel()

    Declaration
    public LinearGaugeLabel()

    Properties

    ContentTemplate

    To get or set value for ContentTemplate.

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

    Font

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

    Declaration
    public LinearGaugeFont Font { get; set; }
    Property Value
    Type Description
    LinearGaugeFont

    The default value is null

    Format

    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 string Format { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Offset

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

    Declaration
    public double Offset { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    Position

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

    Declaration
    public Position Position { get; set; }
    Property Value
    Type Description
    Position

    The default value is Syncfusion.EJ2.LinearGauge.Position.Auto

    UseRangeColor

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

    Declaration
    public bool UseRangeColor { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

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