LinearScale
Represents the linear scale.
Definition
Namespace:Telerik.Windows.Controls.Gauge
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class LinearScale : GraphicScale
Inheritance: objectScaleBaseGraphicScaleLinearScale
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the LinearScale class.
public LinearScale()
Fields
OrientationProperty
DependencyProperty
Identifies the Orientation dependency property.
public static readonly DependencyProperty OrientationProperty
RelativeHeightProperty
DependencyProperty
Identifies the RelativeHeight dependency property.
public static readonly DependencyProperty RelativeHeightProperty
RelativeWidthProperty
DependencyProperty
Identifies the RelativeWidth dependency property.
public static readonly DependencyProperty RelativeWidthProperty
RelativeXProperty
DependencyProperty
Identifies the RelativeX dependency property.
public static readonly DependencyProperty RelativeXProperty
RelativeYProperty
DependencyProperty
Identifies the RelativeY dependency property.
public static readonly DependencyProperty RelativeYProperty
RotateForVerticalProperty
DependencyProperty
Identifies the RotateForVertical dependency property.
public static readonly DependencyProperty RotateForVerticalProperty
Properties
Orientation
Orientation
Gets or sets orientation of the scale.
[SRCategory("Layout")]
public Orientation Orientation { get; set; }
Gets or sets the height of the linear scale relative to the correspondent measurement.
[SRCategory("Layout")]
public double RelativeHeight { get; set; }
Gets or sets the width of the linear scale relative to the correspondent measurement.
[SRCategory("Layout")]
public double RelativeWidth { get; set; }
Gets or sets X position of the linear scale relative to the correspondent measurement.
[SRCategory("Layout")]
public double RelativeX { get; set; }
Methods
Gets position of the object over the scale.
protected override Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)
Element to get position for.
locationScaleObjectLocationScale object location.
offsetGaugeMeasureOffset from the location.
valuedoubleValue along the scale.
Returns:Point
Position of the object over the scale.
Overrides:
Gets value of the attachable RotateForVertical property.
public static bool GetRotateForVertical(DependencyObject element)
Element to get value of the property from.
Returns:Value of the RotateForVertical property.
Gets the value which corresponds to the point on scale.
public override double GetValueByPoint(Point point)
Point on the scale to get value for.
Returns:Double value corresponds to the given point.
Overrides:
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Sets value of the attachable RotateForVertical property.
public static void SetRotateForVertical(DependencyObject element, bool value)
Element to set value of the property to.
valueboolRotateForVertical of the element.
Update geometry of the scale bar.
protected override void UpdateScaleBar()
Overrides: