Struct
GaugeMeasure

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:

cs-api-definition
[TypeConverter(typeof(GaugeMeasureConverter))]
public struct GaugeMeasure

Inherited Members ValueType.ToString()

Constructors

GaugeMeasure(double)

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

Declaration

cs-api-definition
public GaugeMeasure(double pixels)

Parameters

pixels

double

The absolute count of pixels to establish as the value.

GaugeMeasure(double, GridUnitType)

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

Declaration

cs-api-definition
public GaugeMeasure(double value, GridUnitType type)

Parameters

value

double

The initial value.

type

GridUnitType

The GridUnitType held by the GaugeMeasure.

Properties

Auto

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

Declaration

cs-api-definition
public static GaugeMeasure Auto { get; }

Property Value

GaugeMeasure

GridUnitType

Gets the associated GridUnitType for the GaugeMeasure.

Declaration

cs-api-definition
public GridUnitType GridUnitType { get; }

Property Value

GridUnitType

IsAbsolute

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

Declaration

cs-api-definition
public bool IsAbsolute { get; }

Property Value

bool

IsAuto

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

Declaration

cs-api-definition
public bool IsAuto { get; }

Property Value

bool

IsStar

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

Declaration

cs-api-definition
public bool IsStar { get; }

Property Value

bool

Value

Gets a Double that represents the value of the GaugeMeasure.

Declaration

cs-api-definition
public double Value { get; }

Property Value

double

Methods

Equals(GaugeMeasure, GaugeMeasure)

Compares two GaugeMeasure structures for equality.

Declaration

cs-api-definition
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)

Parameters

measure1

GaugeMeasure

The instance of GaugeMeasure to compare.

measure2

GaugeMeasure

The instance of GaugeMeasure to compare.

Returns

bool

true if instances are equal; otherwise, false.

Equals(object)

Compares two GaugeMeasure structures for equality.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The instance of GaugeMeasure to compare to this instance.

Returns

bool

true if instances are equal; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Gets a hash code for this GaugeMeasure structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this GaugeMeasure structure.

Overrides ValueType.GetHashCode()

Parse(string)

Converts a String representation into the equivalent GaugeMeasure object.

Declaration

cs-api-definition
public static GaugeMeasure Parse(string source)

Parameters

source

string

The String representation of the GaugeMeasure object.

Returns

GaugeMeasure

The equivalent GaugeMeasure structure.

Operators

operator !=(GaugeMeasure, GaugeMeasure)

Compares two GaugeMeasure structures for inequality.

Declaration

cs-api-definition
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)

Parameters

measure1

GaugeMeasure

The instance of GaugeMeasure to compare.

measure2

GaugeMeasure

The instance of GaugeMeasure to compare.

Returns

bool

true if instances are equal; otherwise, false.

operator ==(GaugeMeasure, GaugeMeasure)

Compares two GaugeMeasure structures for equality.

Declaration

cs-api-definition
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)

Parameters

measure1

GaugeMeasure

The instance of GaugeMeasure to compare.

measure2

GaugeMeasure

The instance of GaugeMeasure to compare.

Returns

bool

true if instances are equal; otherwise, false.