Class LinearGaugeBuilder
Inheritance
System.Object
LinearGaugeBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class LinearGaugeBuilder : ControlBuilder
Constructors
LinearGaugeBuilder()
Declaration
public LinearGaugeBuilder()
LinearGaugeBuilder(LinearGauge)
Declaration
public LinearGaugeBuilder(LinearGauge model)
Parameters
Fields
model
Declaration
Field Value
Properties
HtmlAttr
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
ID
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Output
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
AllowImageExport(Boolean)
Enables or disables the export to image functionality in linear gauge.
Declaration
public LinearGaugeBuilder AllowImageExport(bool allowImageExport = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowImageExport |
|
Returns
AllowMargin(Boolean)
Enables or disables the ability of the gauge to be rendered to the complete width. The left, right, top and bottom spacing will not be considered in the gauge when this property is disabled.
Declaration
public LinearGaugeBuilder AllowMargin(bool allowMargin = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowMargin |
|
Returns
AllowPdfExport(Boolean)
Enables or disables the export to PDF functionality in linear gauge.
Declaration
public LinearGaugeBuilder AllowPdfExport(bool allowPdfExport = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowPdfExport |
|
Returns
AllowPrint(Boolean)
Enables or disables the print functionality in linear gauge.
Declaration
public LinearGaugeBuilder AllowPrint(bool allowPrint = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowPrint |
|
Returns
AnimationComplete(String)
Triggers after completing the animation for pointer.
Declaration
public LinearGaugeBuilder AnimationComplete(string animationComplete)
Parameters
Type |
Name |
Description |
System.String |
animationComplete |
|
Returns
AnnotationRender(String)
Triggers before each annotation gets rendered.
Declaration
public LinearGaugeBuilder AnnotationRender(string annotationRender)
Parameters
Type |
Name |
Description |
System.String |
annotationRender |
|
Returns
Annotations(Action<LinearGaugeAnnotationBuilder>)
Declaration
public LinearGaugeBuilder Annotations(Action<LinearGaugeAnnotationBuilder> annotations)
Parameters
Returns
Annotations(List<LinearGaugeAnnotation>)
Specifies the options for customizing the annotation of linear gauge.
Declaration
public LinearGaugeBuilder Annotations(List<LinearGaugeAnnotation> annotations)
Parameters
Returns
Axes(Action<LinearGaugeAxisBuilder>)
Declaration
public LinearGaugeBuilder Axes(Action<LinearGaugeAxisBuilder> axes)
Parameters
Returns
Axes(List<LinearGaugeAxis>)
Specifies the options for customizing the axis in linear gauge.
Declaration
public LinearGaugeBuilder Axes(List<LinearGaugeAxis> axes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<LinearGaugeAxis> |
axes |
|
Returns
AxisLabelRender(String)
Triggers before each axis label gets rendered.
Declaration
public LinearGaugeBuilder AxisLabelRender(string axisLabelRender)
Parameters
Type |
Name |
Description |
System.String |
axisLabelRender |
|
Returns
Background(String)
Specifies the background color of the gauge. This property accepts value in hex code, rgba string as a valid CSS color string.
Declaration
public LinearGaugeBuilder Background(string background)
Parameters
Type |
Name |
Description |
System.String |
background |
|
Returns
BeforePrint(String)
Triggers before the print functionality gets started.
Declaration
public LinearGaugeBuilder BeforePrint(string beforePrint)
Parameters
Type |
Name |
Description |
System.String |
beforePrint |
|
Returns
Border(LinearGaugeBorder)
Specifies the options for customizing the style properties of the border for linear gauge.
Declaration
public LinearGaugeBuilder Border(LinearGaugeBorder border)
Parameters
Returns
Border(Action<LinearGaugeBorderBuilder>)
Declaration
public LinearGaugeBuilder Border(Action<LinearGaugeBorderBuilder> border)
Parameters
Returns
Container(LinearGaugeContainer)
Specifies the options for customizing the container in linear gauge.
Declaration
public LinearGaugeBuilder Container(LinearGaugeContainer container)
Parameters
Returns
Container(Action<LinearGaugeContainerBuilder>)
Declaration
public LinearGaugeBuilder Container(Action<LinearGaugeContainerBuilder> container)
Parameters
Returns
Description(String)
Sets and gets the information about gauge for assistive technology.
Declaration
public LinearGaugeBuilder Description(string description)
Parameters
Type |
Name |
Description |
System.String |
description |
|
Returns
DragEnd(String)
Triggers after the pointer is dragged.
Declaration
public LinearGaugeBuilder DragEnd(string dragEnd)
Parameters
Type |
Name |
Description |
System.String |
dragEnd |
|
Returns
DragMove(String)
Triggers while dragging the pointers.
Declaration
public LinearGaugeBuilder DragMove(string dragMove)
Parameters
Type |
Name |
Description |
System.String |
dragMove |
|
Returns
DragStart(String)
Triggers before the pointer is dragged.
Declaration
public LinearGaugeBuilder DragStart(string dragStart)
Parameters
Type |
Name |
Description |
System.String |
dragStart |
|
Returns
EdgeLabelPlacement(LabelPlacement)
Specifies the placement of the label in linear gauge.
Declaration
public LinearGaugeBuilder EdgeLabelPlacement(LabelPlacement edgeLabelPlacement)
Parameters
Returns
EnablePersistence(Boolean)
Enable or disable persisting component's state between page reloads.
Declaration
public LinearGaugeBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRtl(Boolean)
Enable or disable rendering component in right to left direction.
Declaration
public LinearGaugeBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
Specifies the format to apply for internationalization in linear gauge.
Declaration
public LinearGaugeBuilder Format(string format)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
GaugeMouseDown(String)
Triggers when performing the mouse down operation on gauge area.
Declaration
public LinearGaugeBuilder GaugeMouseDown(string gaugeMouseDown)
Parameters
Type |
Name |
Description |
System.String |
gaugeMouseDown |
|
Returns
GaugeMouseLeave(String)
Triggers when performing the mouse leave operation from the gauge area.
Declaration
public LinearGaugeBuilder GaugeMouseLeave(string gaugeMouseLeave)
Parameters
Type |
Name |
Description |
System.String |
gaugeMouseLeave |
|
Returns
GaugeMouseMove(String)
Triggers when performing the mouse move operation on gauge area.
Declaration
public LinearGaugeBuilder GaugeMouseMove(string gaugeMouseMove)
Parameters
Type |
Name |
Description |
System.String |
gaugeMouseMove |
|
Returns
GaugeMouseUp(String)
Triggers when performing mouse up operation on gauge area.
Declaration
public LinearGaugeBuilder GaugeMouseUp(string gaugeMouseUp)
Parameters
Type |
Name |
Description |
System.String |
gaugeMouseUp |
|
Returns
Height(String)
Specifies the height of the linear gauge as a string in order to provide input as both like '100px' or '100%'.
If specified as '100%, gauge will render to the full height of its parent element.
Declaration
public LinearGaugeBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HtmlAttributes(Object)
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public LinearGaugeBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Load(String)
Triggers before the gauge gets rendered.
Declaration
public LinearGaugeBuilder Load(string load)
Parameters
Type |
Name |
Description |
System.String |
load |
|
Returns
Loaded(String)
Triggers after the gauge gets rendered.
Declaration
public LinearGaugeBuilder Loaded(string loaded)
Parameters
Type |
Name |
Description |
System.String |
loaded |
|
Returns
Locale(String)
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public LinearGaugeBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Margin(LinearGaugeMargin)
Specifies the options to customize the margins of the linear gauge.
Declaration
public LinearGaugeBuilder Margin(LinearGaugeMargin margin)
Parameters
Returns
Margin(Action<LinearGaugeMarginBuilder>)
Declaration
public LinearGaugeBuilder Margin(Action<LinearGaugeMarginBuilder> margin)
Parameters
Returns
Orientation(Orientation)
Specifies the orientation of the rendering of the linear gauge.
Declaration
public LinearGaugeBuilder Orientation(Orientation orientation)
Parameters
Returns
RangePalettes(String[])
Specifies the color palette for axis ranges in linear gauge.
Declaration
public LinearGaugeBuilder RangePalettes(string[] rangePalettes)
Parameters
Type |
Name |
Description |
System.String[] |
rangePalettes |
|
Returns
Render()
Declaration
public HtmlString Render()
Returns
Type |
Description |
Microsoft.AspNetCore.Html.HtmlString |
|
Resized(String)
Triggers to notify the resize of the linear gauge when the window is resized.
Declaration
public LinearGaugeBuilder Resized(string resized)
Parameters
Type |
Name |
Description |
System.String |
resized |
|
Returns
TabIndex(Double)
Specifies the tab index value for the linear gauge.
Declaration
public LinearGaugeBuilder TabIndex(double tabIndex)
Parameters
Type |
Name |
Description |
System.Double |
tabIndex |
|
Returns
Theme(LinearGaugeTheme)
Sets and gets the theme styles supported for linear gauge. When the theme is set, the styles associated with the theme will be set in the gauge.
Declaration
public LinearGaugeBuilder Theme(LinearGaugeTheme theme)
Parameters
Returns
Title(String)
Specifies the title for linear gauge.
Declaration
public LinearGaugeBuilder Title(string title)
Parameters
Type |
Name |
Description |
System.String |
title |
|
Returns
TitleStyle(LinearGaugeFont)
Specifies the options for customizing the appearance of title for linear gauge.
Declaration
public LinearGaugeBuilder TitleStyle(LinearGaugeFont titleStyle)
Parameters
Returns
TitleStyle(Action<LinearGaugeFontBuilder>)
Declaration
public LinearGaugeBuilder TitleStyle(Action<LinearGaugeFontBuilder> titleStyle)
Parameters
Returns
Specifies the options for customizing the tooltip in linear gauge.
Declaration
public LinearGaugeBuilder Tooltip(LinearGaugeTooltipSettings tooltip)
Parameters
Returns
Declaration
public LinearGaugeBuilder Tooltip(Action<LinearGaugeTooltipSettingsBuilder> tooltip)
Parameters
Returns
Triggers before the tooltip get rendered.
Declaration
public LinearGaugeBuilder TooltipRender(string tooltipRender)
Parameters
Type |
Name |
Description |
System.String |
tooltipRender |
|
Returns
UseGroupingSeparator(Boolean)
Enables or disables a grouping separator should be used for a number.
Declaration
public LinearGaugeBuilder UseGroupingSeparator(bool useGroupingSeparator = true)
Parameters
Type |
Name |
Description |
System.Boolean |
useGroupingSeparator |
|
Returns
ValueChange(String)
Triggers while changing the value of the pointer by UI interaction.
Declaration
public LinearGaugeBuilder ValueChange(string valueChange)
Parameters
Type |
Name |
Description |
System.String |
valueChange |
|
Returns
Width(String)
Specifies the width of the linear gauge as a string in order to provide input as both like '100px' or '100%'.
If specified as '100%, gauge will render to the full width of its parent element.
Declaration
public LinearGaugeBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns