LinearGaugeGaugeAreaSettingsBuilder
Methods
Margin(System.Int32)
Parameters
margin - System.Int32
Margin(System.Int32,System.Int32,System.Int32,System.Int32)
Sets the gauge area margin.
Parameters
top - System.Int32
The gauge area top margin.
right - System.Int32
The gauge area right margin.
bottom - System.Int32
The gauge area bottom margin.
left - System.Int32
The gauge area left margin.
RETURNS
Returns the LinearGaugeGaugeAreaSettingsBuilder instance for chaining.
Example
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.GaugeArea(gaugeArea => gaugeArea.Margin(0, 5, 5, 0))
.Render();
)
Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Sets the gauge area border.
Parameters
width - System.Int32
The border width.
color - System.String
The border color (CSS syntax).
dashType - ChartDashType
The border dash type.
Example
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.GaugeArea(gaugeArea => gaugeArea.Border(1, "#000", ChartDashType.Dot))
.Render();
)
Border(System.Action)
The border of the gauge area.
Parameters
configurator - System.Action<LinearGaugeGaugeAreaBorderSettingsBuilder>
The configurator for the border setting.
RETURNS
Returns the current instance of LinearGaugeGaugeAreaSettingsBuilder .
Height(System.Double)
The height of the gauge area. By default, the vertical gauge is 200px and the horizontal one is 60px.
Parameters
value - System.Double
The value for Height
RETURNS
Returns the current LinearGaugeGaugeAreaSettingsBuilder instance.
Margin(System.Action)
The margin of the gauge area.
Parameters
configurator - System.Action<LinearGaugeGaugeAreaMarginSettingsBuilder>
The configurator for the margin setting.
RETURNS
Returns the current instance of LinearGaugeGaugeAreaSettingsBuilder .
Width(System.Double)
The width of the gauge area. By default the vertical gauge is 60px and horizontal gauge is 200px.
Parameters
value - System.Double
The value for Width
RETURNS
Returns the current LinearGaugeGaugeAreaSettingsBuilder instance.
Background(System.String)
The background of the gauge area. Any valid CSS color string will work here, including hex and rgb.
Parameters
value - System.String
The value for Background
RETURNS
Returns the current LinearGaugeGaugeAreaSettingsBuilder instance.