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:
[TypeConverter(typeof(GaugeMeasureConverter))]
public struct GaugeMeasure
Inherited Members
Constructors
Initializes a new instance of the GaugeMeasure structure and specifies what kind of value it holds.
public GaugeMeasure(double value, GridUnitType type)
The initial value.
typeGridUnitTypeThe GridUnitType held by the GaugeMeasure.
Initializes a new instance of the GaugeMeasure structure, using the specified absolute value in pixels.
public GaugeMeasure(double pixels)
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.
public static GaugeMeasure Auto { get; }
GridUnitType
GridUnitType
Gets the associated GridUnitType for the GaugeMeasure.
public GridUnitType GridUnitType { get; }
Gets a value that indicates whether the GaugeMeasure holds a value that is expressed in pixels.
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.
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.
public bool IsStar { get; }
Methods
Compares two GaugeMeasure structures for equality.
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)
The instance of GaugeMeasure to compare.
measure2GaugeMeasureThe instance of GaugeMeasure to compare.
Returns:true if instances are equal; otherwise, false.
Compares two GaugeMeasure structures for equality.
public override bool Equals(object obj)
The instance of GaugeMeasure to compare to this instance.
Returns:true if instances are equal; otherwise, false.
Overrides:
Gets a hash code for this GaugeMeasure structure.
public override int GetHashCode()
A hash code for this GaugeMeasure structure.
Overrides:
Converts a String representation into the equivalent GaugeMeasure object.
public static GaugeMeasure Parse(string source)
The String representation of the GaugeMeasure object.
Returns:The equivalent GaugeMeasure structure.
Operators
Compares two GaugeMeasure structures for inequality.
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)
The instance of GaugeMeasure to compare.
measure2GaugeMeasureThe instance of GaugeMeasure to compare.
Returns:true if instances are equal; otherwise, false.
Compares two GaugeMeasure structures for equality.
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)
The instance of GaugeMeasure to compare.
measure2GaugeMeasureThe instance of GaugeMeasure to compare.
Returns:true if instances are equal; otherwise, false.