ejLinearGauge
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
The Gauge control for Essential Studio displays numerical information in the form of a scale that can be customized and oriented either vertically or horizontally.
- C#
- VB.NET
public class ejLinearGauge : ejBase
Public Class ejLinearGauge
Inherits ejBase
Constructors
ejLinearGauge()
Constructs a new instance of the ejLinearGauge class.
Example:
The following example creates the gauge and sets the range and the value through the options.
var gauge = new ejLinearGauge();
gauge.Options.minimum = 0;
gauge.Options.maximum = 100;
gauge.Options.value = 65;
gauge.Size = new Size(150, 400);
this.Controls.Add(gauge);
ejLinearGauge(options)
Constructs a new instance of the ejLinearGauge class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a gauge with a scale from 0 to 100 that shows the value using a marker and a bar.
var gauge = new ejLinearGauge(new
{
scales = new[]
{
new
{
minimum = 0,
maximum = 100,
markerPointers = new[] { new { value = 65 } },
barPointers = new[] { new { value = 65 } }
}
}
});
gauge.Size = new Size(150, 400);
this.Controls.Add(gauge);