Struct GaugeMeasure
Represents the measurement of the scale elements that explicitly support Star (*) unit sizing.
Inherited Members
Namespace: Telerik.Windows.Controls.Gauge
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public struct GaugeMeasure
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.Double
pixels
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.Double
value
The initial value. |
System.Windows.GridUnitType
type
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
GaugeMeasure
|
GridUnitType
Gets the associated GridUnitType for the GaugeMeasure.
Declaration
public GridUnitType GridUnitType { get; }
Property Value
System.Windows.GridUnitType
|
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.Boolean
|
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.Boolean
|
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.Boolean
|
Value
Gets a Double that represents the value of the GaugeMeasure.
Declaration
public double Value { get; }
Property Value
System.Double
|
Methods
Equals(Object)
Compares two GaugeMeasure structures for equality.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The instance of GaugeMeasure to compare to this instance. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Overrides
Equals(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for equality.
Declaration
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
GaugeMeasure
measure1
The instance of GaugeMeasure to compare. |
GaugeMeasure
measure2
The instance of GaugeMeasure to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
GetHashCode()
Gets a hash code for this GaugeMeasure structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this GaugeMeasure structure. |
Overrides
Parse(String)
Converts a String representation into the equivalent GaugeMeasure object.
Declaration
public static GaugeMeasure Parse(string source)
Parameters
System.String
source
The String representation of the GaugeMeasure object. |
Returns
GaugeMeasure
The equivalent GaugeMeasure structure. |
Operators
Equality(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for equality.
Declaration
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
GaugeMeasure
measure1
The instance of GaugeMeasure to compare. |
GaugeMeasure
measure2
The instance of GaugeMeasure to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Inequality(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for inequality.
Declaration
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
GaugeMeasure
measure1
The instance of GaugeMeasure to compare. |
GaugeMeasure
measure2
The instance of GaugeMeasure to compare. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |