New to Telerik UI for WPFStart a free 30-day trial

Represents the measurement of the scale elements that explicitly support Star (*) unit sizing.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TypeConverter(typeof(GaugeMeasureConverter))]
public struct GaugeMeasure

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the GaugeMeasure structure and specifies what kind of value it holds.

C#
public GaugeMeasure(double value, GridUnitType type)
Parameters:valuedouble

The initial value.

typeGridUnitType

The GridUnitType held by the GaugeMeasure.

Initializes a new instance of the GaugeMeasure structure, using the specified absolute value in pixels.

C#
public GaugeMeasure(double pixels)
Parameters:pixelsdouble

The absolute count of pixels to establish as the value.

Properties

Gets an instance of GaugeMeasure that holds a value whose size is determined by the size properties of the content object.

C#
public static GaugeMeasure Auto { get; }

GridUnitType

GridUnitType

Gets the associated GridUnitType for the GaugeMeasure.

C#
public GridUnitType GridUnitType { get; }

Gets a value that indicates whether the GaugeMeasure holds a value that is expressed in pixels.

C#
public bool IsAbsolute { get; }

Gets a value that indicates whether the GaugeMeasure holds a value whose size is determined by the size properties of the content object.

C#
public bool IsAuto { get; }

Gets a value that indicates whether the GaugeMeasure holds a value that is expressed as a weighted proportion of available space.

C#
public bool IsStar { get; }

Gets a Double that represents the value of the GaugeMeasure.

C#
public double Value { get; }

Methods

Compares two GaugeMeasure structures for equality.

C#
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters:measure1GaugeMeasure

The instance of GaugeMeasure to compare.

measure2GaugeMeasure

The instance of GaugeMeasure to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Compares two GaugeMeasure structures for equality.

C#
public override bool Equals(object obj)
Parameters:objobject

The instance of GaugeMeasure to compare to this instance.

Returns:

bool

true if instances are equal; otherwise, false.

Overrides: ValueType.Equals(object)

Gets a hash code for this GaugeMeasure structure.

C#
public override int GetHashCode()
Returns:

int

A hash code for this GaugeMeasure structure.

Overrides: ValueType.GetHashCode()

Converts a String representation into the equivalent GaugeMeasure object.

C#
public static GaugeMeasure Parse(string source)
Parameters:sourcestring

The String representation of the GaugeMeasure object.

Returns:

GaugeMeasure

The equivalent GaugeMeasure structure.

Operators

Compares two GaugeMeasure structures for inequality.

C#
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters:measure1GaugeMeasure

The instance of GaugeMeasure to compare.

measure2GaugeMeasure

The instance of GaugeMeasure to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Compares two GaugeMeasure structures for equality.

C#
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters:measure1GaugeMeasure

The instance of GaugeMeasure to compare.

measure2GaugeMeasure

The instance of GaugeMeasure to compare.

Returns:

bool

true if instances are equal; otherwise, false.