Class LinearGaugeLabelBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
LinearGaugeLabelBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.LinearGauge
Assembly: Syncfusion.AspNetMvc.LinearGauge.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 |