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
Font(Action<LinearGaugeFontBuilder>)
Declaration
public LinearGaugeLabelBuilder Font(Action<LinearGaugeFontBuilder> font)
Parameters
Type | Name | Description |
---|---|---|
System.Action<LinearGaugeFontBuilder> | font |
Returns
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
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
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
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 |