kendoLinearGauge
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The LinearGauge represents values on a linear scale.
- C#
- VB.NET
public class kendoLinearGauge : kendoBase
Public Class kendoLinearGauge
Inherits kendoBase
Constructors
kendoLinearGauge()
Constructs a new instance of the kendoLinearGauge class.
Example:
The following example creates a horizontal linear gauge and configures it through the Options property.
var gauge = new kendoLinearGauge();
gauge.Options.pointer = new { value = 28 };
gauge.Options.scale = new { min = 0, max = 50, vertical = false };
gauge.Size = new Size(400, 80);
this.Controls.Add(gauge);
kendoLinearGauge(options)
Constructs a new instance of the kendoLinearGauge class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a vertical linear gauge with an arrow pointer and a highlighted range.
var gauge = new kendoLinearGauge(new
{
pointer = new { value = 72, shape = "arrow" },
scale = new
{
min = 0,
max = 100,
majorUnit = 20,
ranges = new[] { new { from = 80, to = 100, color = "#c20000" } }
}
});
gauge.Size = new Size(100, 300);
this.Controls.Add(gauge);