Class Gauge
- Namespace
- GHIElectronics.Endpoint.UI.Controls
- Assembly
- GHIElectronics.Endpoint.UI.dll
public class Gauge : Image, IDisposable
- Inheritance
-
Gauge
- Implements
- Inherited Members
Constructors
Gauge(int)
public Gauge(int radius)
Parameters
radiusint
Properties
BackColor
public Color BackColor { get; set; }
Property Value
DialColor
Background color of the dial
public Color DialColor { get; set; }
Property Value
DialText
Gets or Sets the Text to be displayed in the dial
public string DialText { get; set; }
Property Value
EnableDigitalNumber
public bool EnableDigitalNumber { get; set; }
Property Value
EnableThresold
public bool EnableThresold { get; set; }
Property Value
EnableTransparentBackground
Enables or Disables Transparent Background color. Note: Enabling this will reduce the performance and may make the control flicker.
public bool EnableTransparentBackground { get; set; }
Property Value
Font
public Font Font { get; set; }
Property Value
Glossiness
Glossiness strength. Range: 0-100
public float Glossiness { get; set; }
Property Value
MaxValue
Maximum value on the scale
public float MaxValue { get; set; }
Property Value
MinValue
Mininum value on the scale
public float MinValue { get; set; }
Property Value
NoOfDivisions
Get or Sets the number of Divisions in the dial scale.
public int NoOfDivisions { get; set; }
Property Value
NoOfSubDivisions
Gets or Sets the number of Sub Divisions in the scale per Division.
public int NoOfSubDivisions { get; set; }
Property Value
RecommendedValue
Threshold value from which green area will be marked.
public float RecommendedValue { get; set; }
Property Value
ThresholdPercent
Gets or Sets the Threshold area from the Recommended Value. (1-99%)
public float ThresholdPercent { get; set; }
Property Value
Value
Value where the pointer will point to.
public float Value { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
~Gauge()
protected ~Gauge()
GetRadian(float)
Converts the given degree to radian.
public float GetRadian(float theta)
Parameters
thetafloat
Returns
OnRender(DrawingContext)
public override void OnRender(DrawingContext dc)
Parameters
PaintBackground(Graphics)
Draws the dial background.
protected void PaintBackground(Graphics gfx)
Parameters
gfxGraphics