Class
LinearScale

Represents the linear scale.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
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

LinearScale()

Initializes a new instance of the LinearScale class.

Declaration

cs-api-definition
public LinearScale()

Fields

OrientationProperty

Identifies the Orientation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OrientationProperty

Field Value

DependencyProperty

RelativeHeightProperty

Identifies the RelativeHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RelativeHeightProperty

Field Value

DependencyProperty

RelativeWidthProperty

Identifies the RelativeWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RelativeWidthProperty

Field Value

DependencyProperty

RelativeXProperty

Identifies the RelativeX dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RelativeXProperty

Field Value

DependencyProperty

RelativeYProperty

Identifies the RelativeY dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RelativeYProperty

Field Value

DependencyProperty

RotateForVerticalProperty

Identifies the RotateForVertical dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RotateForVerticalProperty

Field Value

DependencyProperty

Properties

Orientation

Gets or sets orientation of the scale.

Declaration

cs-api-definition
[SRCategory("Layout")]
public Orientation Orientation { get; set; }

Property Value

Orientation

RelativeHeight

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

Declaration

cs-api-definition
[SRCategory("Layout")]
public double RelativeHeight { get; set; }

Property Value

double

RelativeWidth

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

Declaration

cs-api-definition
[SRCategory("Layout")]
public double RelativeWidth { get; set; }

Property Value

double

RelativeX

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

Declaration

cs-api-definition
[SRCategory("Layout")]
public double RelativeX { get; set; }

Property Value

double

RelativeY

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

Declaration

cs-api-definition
[SRCategory("Layout")]
public double RelativeY { get; set; }

Property Value

double

Methods

GetObjectPosition(FrameworkElement, ScaleObjectLocation, GaugeMeasure, double)

Gets position of the object over the scale.

Declaration

cs-api-definition
protected override Point GetObjectPosition(FrameworkElement element, ScaleObjectLocation location, GaugeMeasure offset, double value)

Parameters

element

FrameworkElement

Element to get position for.

location

ScaleObjectLocation

Scale object location.

offset

GaugeMeasure

Offset from the location.

value

double

Value along the scale.

Returns

Point

Position of the object over the scale.

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

GetRotateForVertical(DependencyObject)

Gets value of the attachable RotateForVertical property.

Declaration

cs-api-definition
public static bool GetRotateForVertical(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

bool

Value of the RotateForVertical property.

GetValueByPoint(Point)

Gets the value which corresponds to the point on scale.

Declaration

cs-api-definition
public override double GetValueByPoint(Point point)

Parameters

point

Point

Point on the scale to get value for.

Returns

double

Double value corresponds to the given point.

Overrides GraphicScale.GetValueByPoint(Point)

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

SetRotateForVertical(DependencyObject, bool)

Sets value of the attachable RotateForVertical property.

Declaration

cs-api-definition
public static void SetRotateForVertical(DependencyObject element, bool value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

bool

RotateForVertical of the element.

UpdateScaleBar()

Update geometry of the scale bar.

Declaration

cs-api-definition
protected override void UpdateScaleBar()

Overrides GraphicScale.UpdateScaleBar()