Class GaugeMeasure
Represents the measurement of the scale elements that explicitly support Star (*) unit sizing.
Inheritance
Namespace: Telerik.Windows.Controls.Gauge
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public sealed class GaugeMeasure : ValueType
Constructors
GaugeMeasure(Double)
Initializes a new instance of the GaugeMeasure structure, using the specified absolute value in pixels.
Declaration
public GaugeMeasure(double pixels)
Parameters
System. 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
public GaugeMeasure(double value, GridUnitType type)
Parameters
System. The initial value. |
System. 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
public static GaugeMeasure Auto { get; }
Property Value
GridUnitType
Gets the associated GridUnitType for the GaugeMeasure.
Declaration
public GridUnitType GridUnitType { get; }
Property Value
System.
|
IsAbsolute
Gets a value that indicates whether the GaugeMeasure holds a value that is expressed in pixels.
Declaration
public bool IsAbsolute { get; }
Property Value
System.
|
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
public bool IsAuto { get; }
Property Value
System.
|
IsStar
Gets a value that indicates whether the GaugeMeasure holds a value that is expressed as a weighted proportion of available space.
Declaration
public bool IsStar { get; }
Property Value
System.
|
Value
Gets a Double that represents the value of the GaugeMeasure.
Declaration
public double Value { get; }
Property Value
System.
|
Methods
Equals(Object)
Compares two Gauge
Declaration
public override bool Equals(object obj)
Parameters
System. The instance of Gauge |
Returns
System. true if instances are equal; otherwise, false. |
Equals(GaugeMeasure, GaugeMeasure)
Compares two Gauge
Declaration
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
Gauge The instance of Gauge |
Gauge The instance of Gauge |
Returns
System. true if instances are equal; otherwise, false. |
GetHashCode()
Gets a hash code for this Gauge
Declaration
public override int GetHashCode()
Returns
System. A hash code for this Gauge |
Parse(String)
Converts a String representation into the equivalent GaugeMeasure object.
Declaration
public static GaugeMeasure Parse(string source)
Parameters
System. The String representation of the GaugeMeasure object. |
Returns
Gauge The equivalent GaugeMeasure structure. |
Operators
Equality(GaugeMeasure, GaugeMeasure)
Compares two Gauge
Declaration
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
Gauge The instance of Gauge |
Gauge The instance of Gauge |
Returns
System. true if instances are equal; otherwise, false. |
Inequality(GaugeMeasure, GaugeMeasure)
Compares two Gauge
Declaration
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
Gauge The instance of Gauge |
Gauge The instance of Gauge |
Returns
System. true if instances are equal; otherwise, false. |