Table of Contents

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

radius int

Properties

BackColor

public Color BackColor { get; set; }

Property Value

Color

DialColor

Background color of the dial

public Color DialColor { get; set; }

Property Value

Color

DialText

Gets or Sets the Text to be displayed in the dial

public string DialText { get; set; }

Property Value

string

EnableDigitalNumber

public bool EnableDigitalNumber { get; set; }

Property Value

bool

EnableThresold

public bool EnableThresold { get; set; }

Property Value

bool

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

bool

Font

public Font Font { get; set; }

Property Value

Font

Glossiness

Glossiness strength. Range: 0-100

public float Glossiness { get; set; }

Property Value

float

MaxValue

Maximum value on the scale

public float MaxValue { get; set; }

Property Value

float

MinValue

Mininum value on the scale

public float MinValue { get; set; }

Property Value

float

NoOfDivisions

Get or Sets the number of Divisions in the dial scale.

public int NoOfDivisions { get; set; }

Property Value

int

NoOfSubDivisions

Gets or Sets the number of Sub Divisions in the scale per Division.

public int NoOfSubDivisions { get; set; }

Property Value

int

RecommendedValue

Threshold value from which green area will be marked.

public float RecommendedValue { get; set; }

Property Value

float

ThresholdPercent

Gets or Sets the Threshold area from the Recommended Value. (1-99%)

public float ThresholdPercent { get; set; }

Property Value

float

Value

Value where the pointer will point to.

public float Value { get; set; }

Property Value

float

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

disposing bool

~Gauge()

protected ~Gauge()

GetRadian(float)

Converts the given degree to radian.

public float GetRadian(float theta)

Parameters

theta float

Returns

float

OnRender(DrawingContext)

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

PaintBackground(Graphics)

Draws the dial background.

protected void PaintBackground(Graphics gfx)

Parameters

gfx Graphics