StructGaugeMeasure
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
GaugeMeasure(double)
Initializes a new instance of the GaugeMeasure structure, using the specified absolute value in pixels.
Declaration
public GaugeMeasure(double pixels)
Parameters
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
value
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.
GridUnitType
Gets the associated GridUnitType for the GaugeMeasure.
Declaration
public GridUnitType GridUnitType { get; }
Property Value
GridUnitType
IsAbsolute
Gets a value that indicates whether the GaugeMeasure holds a value that is expressed in pixels.
IsAuto
Gets a value that indicates whether the GaugeMeasure holds a value whose size is determined by the size properties of the content object.
IsStar
Gets a value that indicates whether the GaugeMeasure holds a value that is expressed as a weighted proportion of available space.
Methods
Equals(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for equality.
Declaration
public static bool Equals(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
measure1
The instance of GaugeMeasure to compare.
measure2
The instance of GaugeMeasure to compare.
Returns
true if instances are equal; otherwise, false.
Equals(object)
Compares two GaugeMeasure structures for equality.
Declaration
public override bool Equals(object obj)
Parameters
obj
The instance of GaugeMeasure to compare to this instance.
Returns
true if instances are equal; otherwise, false.
Overrides
GetHashCode()
Gets a hash code for this GaugeMeasure structure.
Declaration
public override int GetHashCode()
Returns
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
source
The String representation of the GaugeMeasure object.
Returns
The equivalent GaugeMeasure structure.
Operators
operator !=(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for inequality.
Declaration
public static bool operator !=(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
measure1
The instance of GaugeMeasure to compare.
measure2
The instance of GaugeMeasure to compare.
Returns
true if instances are equal; otherwise, false.
operator ==(GaugeMeasure, GaugeMeasure)
Compares two GaugeMeasure structures for equality.
Declaration
public static bool operator ==(GaugeMeasure measure1, GaugeMeasure measure2)
Parameters
measure1
The instance of GaugeMeasure to compare.
measure2
The instance of GaugeMeasure to compare.
Returns
true if instances are equal; otherwise, false.