New to Telerik UI for WPFStart a free 30-day trial

Represents the linear scale.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class LinearScale : GraphicScale

Inheritance: objectScaleBaseGraphicScaleLinearScale

Derived Classes: HorizontalLinearScaleVerticalLinearScale

Inherited Members GraphicScale.DistributionPropertyGraphicScale.EndTickOffsetPropertyGraphicScale.EndWidthPropertyGraphicScale.FillPropertyGraphicScale.IsReversedPropertyGraphicScale.LabelFormatPropertyGraphicScale.LabelLocationPropertyGraphicScale.LabelOffsetPropertyGraphicScale.LabelTemplatePropertyGraphicScale.LabelTooltipFormatPropertyGraphicScale.LabelToolTipStylePropertyGraphicScale.LabelToolTipTemplatePropertyGraphicScale.LabelUseRangeColorPropertyGraphicScale.MajorTickBackgroundPropertyGraphicScale.MajorTickListPropertyGraphicScale.MajorTickLocationPropertyGraphicScale.MajorTickOffsetPropertyGraphicScale.MajorTickRelativeHeightPropertyGraphicScale.MajorTickRelativeWidthPropertyGraphicScale.MajorTicksPropertyGraphicScale.MajorTickStepPropertyGraphicScale.MajorTickStrokePropertyGraphicScale.MajorTickStrokeThicknessPropertyGraphicScale.MajorTickTemplatePropertyGraphicScale.MajorTickTooltipFormatPropertyGraphicScale.MajorTickToolTipStylePropertyGraphicScale.MajorTickToolTipTemplatePropertyGraphicScale.MajorTickUseRangeColorPropertyGraphicScale.MiddleTickBackgroundPropertyGraphicScale.MiddleTickLocationPropertyGraphicScale.MiddleTickOffsetPropertyGraphicScale.MiddleTickRelativeHeightPropertyGraphicScale.MiddleTickRelativeWidthPropertyGraphicScale.MiddleTicksPropertyGraphicScale.MiddleTickStrokePropertyGraphicScale.MiddleTickStrokeThicknessPropertyGraphicScale.MiddleTickTemplatePropertyGraphicScale.MiddleTickTooltipFormatPropertyGraphicScale.MiddleTickToolTipStylePropertyGraphicScale.MiddleTickToolTipTemplatePropertyGraphicScale.MiddleTickUseRangeColorPropertyGraphicScale.MinorTickBackgroundPropertyGraphicScale.MinorTickLocationPropertyGraphicScale.MinorTickOffsetPropertyGraphicScale.MinorTickRelativeHeightPropertyGraphicScale.MinorTickRelativeWidthPropertyGraphicScale.MinorTicksPropertyGraphicScale.MinorTickStrokePropertyGraphicScale.MinorTickStrokeThicknessPropertyGraphicScale.MinorTickTemplatePropertyGraphicScale.MinorTickTooltipFormatPropertyGraphicScale.MinorTickToolTipStylePropertyGraphicScale.MinorTickToolTipTemplatePropertyGraphicScale.MinorTickUseRangeColorPropertyGraphicScale.RangeLocationPropertyGraphicScale.RangeOffsetPropertyGraphicScale.ShowFirstLabelPropertyGraphicScale.ShowLastLabelPropertyGraphicScale.StartTickOffsetPropertyGraphicScale.StartWidthPropertyGraphicScale.StrokePropertyGraphicScale.StrokeThicknessPropertyGraphicScale.TickRangeGroupPropertyGraphicScale.IsInteractivePropertyGraphicScale.OnApplyTemplate()GraphicScale.ArrangeOverride(Size)GraphicScale.ClearContainerForItemOverride(DependencyObject, object)GraphicScale.MeasureOverride(Size)GraphicScale.PrepareContainerForItemOverride(DependencyObject, object)GraphicScale.PresenterSizeChanged(object, SizeChangedEventArgs)GraphicScale.UpdateTicksAndLabels()GraphicScale.ScaleObjectChanged(FrameworkElement)GraphicScale.DistributionGraphicScale.EndTickOffsetGraphicScale.EndWidthGraphicScale.FillGraphicScale.IsReversedGraphicScale.LabelFormatGraphicScale.LabelLocationGraphicScale.LabelOffsetGraphicScale.LabelTemplateGraphicScale.LabelTooltipFormatGraphicScale.LabelToolTipStyleGraphicScale.LabelToolTipTemplateGraphicScale.LabelUseRangeColorGraphicScale.MajorTickBackgroundGraphicScale.MajorTickListGraphicScale.MajorTickLocationGraphicScale.MajorTickOffsetGraphicScale.MajorTickRelativeHeightGraphicScale.MajorTickRelativeWidthGraphicScale.MajorTicksGraphicScale.MajorTickStepGraphicScale.MajorTickStrokeGraphicScale.MajorTickStrokeThicknessGraphicScale.MajorTickTemplateGraphicScale.MajorTickTooltipFormatGraphicScale.MajorTickToolTipStyleGraphicScale.MajorTickToolTipTemplateGraphicScale.MajorTickUseRangeColorGraphicScale.MiddleTickBackgroundGraphicScale.MiddleTickLocationGraphicScale.MiddleTickOffsetGraphicScale.MiddleTickRelativeHeightGraphicScale.MiddleTickRelativeWidthGraphicScale.MiddleTicksGraphicScale.MiddleTickStrokeGraphicScale.MiddleTickStrokeThicknessGraphicScale.MiddleTickTemplateGraphicScale.MiddleTickTooltipFormatGraphicScale.MiddleTickToolTipStyleGraphicScale.MiddleTickToolTipTemplateGraphicScale.MiddleTickUseRangeColorGraphicScale.MinorTickBackgroundGraphicScale.MinorTickLocationGraphicScale.MinorTickOffsetGraphicScale.MinorTickRelativeHeightGraphicScale.MinorTickRelativeWidthGraphicScale.MinorTicksGraphicScale.MinorTickStrokeGraphicScale.MinorTickStrokeThicknessGraphicScale.MinorTickTemplateGraphicScale.MinorTickTooltipFormatGraphicScale.MinorTickToolTipStyleGraphicScale.MinorTickToolTipTemplateGraphicScale.MinorTickUseRangeColorGraphicScale.RangeLocationGraphicScale.RangeOffsetGraphicScale.ShowFirstLabelGraphicScale.ShowLastLabelGraphicScale.StartTickOffsetGraphicScale.StartWidthGraphicScale.StrokeGraphicScale.StrokeThicknessGraphicScale.TickRangeGroupGraphicScale.IsInteractiveGraphicScale.EndValueGraphicScale.UseTickListGraphicScale.UseTickStepsGraphicScale.MajorTicksCountGraphicScale.StartValueScaleBase.CustomItemsPropertyScaleBase.CustomItemTemplatePropertyScaleBase.CustomItemTemplateSelectorPropertyScaleBase.MaxPropertyScaleBase.MinPropertyScaleBase.MultiplierPropertyScaleBase.RangesPropertyScaleBase.RangeTemplatePropertyScaleBase.PositionObject(DependencyObject)ScaleBase.ResizeObject(DependencyObject)ScaleBase.ResetTheme()ScaleBase.OnCreateAutomationPeer()ScaleBase.CalculateCellSize()ScaleBase.GetContainerForItemOverride()ScaleBase.IsItemItsOwnContainerOverride(object)ScaleBase.CellSizeScaleBase.CustomItemsScaleBase.CustomItemTemplateScaleBase.CustomItemTemplateSelectorScaleBase.IndicatorsScaleBase.MaxScaleBase.MinScaleBase.MultiplierScaleBase.RangesScaleBase.RangeTemplateScaleBase.DefaultRangeGroup...

Constructors

Initializes a new instance of the LinearScale class.

C#
public LinearScale()

Fields

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

RelativeHeightProperty

DependencyProperty

Identifies the RelativeHeight dependency property.

C#
public static readonly DependencyProperty RelativeHeightProperty

RelativeWidthProperty

DependencyProperty

Identifies the RelativeWidth dependency property.

C#
public static readonly DependencyProperty RelativeWidthProperty

RelativeXProperty

DependencyProperty

Identifies the RelativeX dependency property.

C#
public static readonly DependencyProperty RelativeXProperty

RelativeYProperty

DependencyProperty

Identifies the RelativeY dependency property.

C#
public static readonly DependencyProperty RelativeYProperty

RotateForVerticalProperty

DependencyProperty

Identifies the RotateForVertical dependency property.

C#
public static readonly DependencyProperty RotateForVerticalProperty

Properties

Orientation

Orientation

Gets or sets orientation of the scale.

C#
[SRCategory("Layout")]
public Orientation Orientation { get; set; }

Gets or sets the height of the linear scale relative to the correspondent measurement.

C#
[SRCategory("Layout")]
public double RelativeHeight { get; set; }

Gets or sets the width of the linear scale relative to the correspondent measurement.

C#
[SRCategory("Layout")]
public double RelativeWidth { get; set; }

Gets or sets X position of the linear scale relative to the correspondent measurement.

C#
[SRCategory("Layout")]
public double RelativeX { get; set; }

Gets or sets Y position of the linear scale relative to the correspondent measurement.

C#
[SRCategory("Layout")]
public double RelativeY { get; set; }

Methods

Gets position of the object over the scale.

C#
protected override Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)
Parameters:elementFrameworkElement

Element to get position for.

locationScaleObjectLocation

Scale object location.

offsetGaugeMeasure

Offset from the location.

valuedouble

Value along the scale.

Returns:

Point

Position of the object over the scale.

Overrides: ScaleBase.GetObjectPosition(FrameworkElement, ScaleObjectLocation, GaugeMeasure, double)

Gets value of the attachable RotateForVertical property.

C#
public static bool GetRotateForVertical(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

bool

Value of the RotateForVertical property.

Gets the value which corresponds to the point on scale.

C#
public override double GetValueByPoint(Point point)
Parameters:pointPoint

Point on the scale to get value for.

Returns:

double

Double value corresponds to the given point.

Overrides: GraphicScale.GetValueByPoint(Point)

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Sets value of the attachable RotateForVertical property.

C#
public static void SetRotateForVertical(DependencyObject element, bool value)
Parameters:elementDependencyObject

Element to set value of the property to.

valuebool

RotateForVertical of the element.

Update geometry of the scale bar.

C#
protected override void UpdateScaleBar()

Overrides: GraphicScale.UpdateScaleBar()