Gage
Namespace: Wisej.Web.Ext.Webix
Assembly: Wisej.Web.Ext.Webix (4.1.0.0)
The Gage widget allows visualizing alteration of data values with the help of color representation of the displayed value.
- C#
- VB.NET
public class Gage : wxBase
Public Class Gage
Inherits wxBase
Constructors
Gage()
Constructs a new instance of the Gage class.
Example:
The following example creates a gage and sets its range, label and value through the options.
var gage = new Gage();
gage.Options.minRange = 0;
gage.Options.maxRange = 100;
gage.Options.label = "CPU";
gage.Options.value = 65;
gage.Size = new Size(250, 250);
this.Controls.Add(gage);
Gage(options)
Constructs a new instance of the Gage class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a speed gage passing the range, the label and the unit of measure.
var gage = new Gage(new
{
value = 120,
minRange = 0,
maxRange = 240,
label = "Speed",
placeholder = "km/h"
});
gage.Size = new Size(250, 250);
this.Controls.Add(gage);