Show / Hide Table of Contents

Class RangeAxis

An axis that has a range.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
Axis
DisplayAxis
RangeAxis
DateTimeAxis
NumericAxis
Implements
IRequireSeriesHost
IRangeAxis
IAxis
IRangeConsumer
IValueMarginConsumer
Inherited Members
DisplayAxis.MaximumAxisIntervalsPer200Pixels
DisplayAxis.AxisGridName
DisplayAxis.AxisTitleName
DisplayAxis.AxisLabelStyle
DisplayAxis.AxisLabelStyleProperty
DisplayAxis.OnAxisLabelStylePropertyChanged(Style, Style)
DisplayAxis.ActualLength
DisplayAxis.GetLength(Size)
DisplayAxis.MajorTickMarkStyle
DisplayAxis.MajorTickMarkStyleProperty
DisplayAxis.OnMajorTickMarkStylePropertyChanged(Style, Style)
DisplayAxis.Title
DisplayAxis.TitleProperty
DisplayAxis.OnTitlePropertyChanged(Object, Object)
DisplayAxis.TitleStyle
DisplayAxis.TitleStyleProperty
DisplayAxis.ShowGridLines
DisplayAxis.ShowGridLinesProperty
DisplayAxis.OnShowGridLinesPropertyChanged(Boolean, Boolean)
DisplayAxis.GridLineStyle
DisplayAxis.GridLineStyleProperty
DisplayAxis.CreateMajorTickMark()
DisplayAxis.CreateTickMark(Style)
DisplayAxis.CreateAxisLabel()
DisplayAxis.OnDependentAxesCollectionChanged()
DisplayAxis.PrepareAxisLabel(Control, Object)
DisplayAxis.OnApplyTemplate()
DisplayAxis.OnLocationPropertyChanged(AxisLocation, AxisLocation)
DisplayAxis.MeasureOverride(Size)
DisplayAxis.OnOrientationPropertyChanged(AxisOrientation, AxisOrientation)
DisplayAxis.OnInvalidated(RoutedEventArgs)
DisplayAxis.Invalidate()
DisplayAxis.SeriesHost
DisplayAxis.OnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)
Axis.Location
Axis.LocationProperty
Axis.LocationChanged
Axis.DependentAxes
Axis.Orientation
Axis.OrientationProperty
Axis.OrientationChanged
Axis.RegisteredListeners
Axis.CanPlot(Object)
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
public abstract class RangeAxis : DisplayAxis, IControl, IFrameworkElement, IUIElement, IDependencyObject, IRequireSeriesHost, IRangeAxis, IAxis, IRangeConsumer, IValueMarginConsumer

Constructors

| Improve this Doc View Source

RangeAxis()

Instantiates a new instance of the RangeAxis class.

Declaration
protected RangeAxis()

Fields

| Improve this Doc View Source

MinorTickMarkStyleProperty

Identifies the MinorTickMarkStyle dependency property.

Declaration
public static readonly DependencyProperty MinorTickMarkStyleProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ActualRange

Gets or sets the actual range of values.

Declaration
protected Range<IComparable> ActualRange { get; set; }
Property Value
Type Description
Range<System.IComparable>
| Improve this Doc View Source

MinorTickMarkStyle

Gets or sets the minor tick mark style.

Declaration
public Style MinorTickMarkStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

Origin

Gets the origin value on the axis.

Declaration
protected abstract IComparable Origin { get; }
Property Value
Type Description
System.IComparable
| Improve this Doc View Source

ProtectedMaximum

Gets or sets the maximum value displayed in the range axis.

Declaration
protected IComparable ProtectedMaximum { get; set; }
Property Value
Type Description
System.IComparable
| Improve this Doc View Source

ProtectedMinimum

Gets or sets the minimum value displayed in the range axis.

Declaration
protected IComparable ProtectedMinimum { get; set; }
Property Value
Type Description
System.IComparable

Methods

| Improve this Doc View Source

CreateMinorTickMark()

Creates a minor axis tick mark.

Declaration
protected Line CreateMinorTickMark()
Returns
Type Description
Line

A line to used to render a tick mark.

| Improve this Doc View Source

GetLabelValues(Size)

Returns a sequence of values to plot on the axis.

Declaration
protected abstract IEnumerable<IComparable> GetLabelValues(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.IComparable>

A sequence of values to plot on the axis.

| Improve this Doc View Source

GetMajorGridLineCoordinates(Size)

Returns a sequence of the major grid line coordinates.

Declaration
protected override IEnumerable<UnitValue> GetMajorGridLineCoordinates(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<UnitValue>

A sequence of the major grid line coordinates.

Overrides
DisplayAxis.GetMajorGridLineCoordinates(Size)
| Improve this Doc View Source

GetMajorGridLineValues(Size)

Returns a sequence of the values at which to plot major grid lines.

Declaration
protected virtual IEnumerable<IComparable> GetMajorGridLineValues(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.IComparable>

A sequence of the values at which to plot major grid lines.

| Improve this Doc View Source

GetMajorTickMarkValues(Size)

Returns a sequence of values to plot on the axis.

Declaration
protected abstract IEnumerable<IComparable> GetMajorTickMarkValues(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.IComparable>

A sequence of values to plot on the axis.

| Improve this Doc View Source

GetMinorTickMarkValues(Size)

Returns a sequence of values to plot on the axis.

Declaration
protected virtual IEnumerable<IComparable> GetMinorTickMarkValues(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.IComparable>

A sequence of values to plot on the axis.

| Improve this Doc View Source

GetPlotAreaCoordinate(Object)

Returns the plot area coordinate of a given value.

Declaration
public override UnitValue GetPlotAreaCoordinate(object value)
Parameters
Type Name Description
System.Object value

The value to return the plot area coordinate for.

Returns
Type Description
UnitValue

The plot area coordinate of the given value.

Overrides
Axis.GetPlotAreaCoordinate(Object)
| Improve this Doc View Source

GetPlotAreaCoordinate(Object, Double)

Returns the plot area coordinate of a given value.

Declaration
protected abstract UnitValue GetPlotAreaCoordinate(object value, double length)
Parameters
Type Name Description
System.Object value

The value to return the plot area coordinate for.

System.Double length

The length of the axis.

Returns
Type Description
UnitValue

The plot area coordinate of the given value.

| Improve this Doc View Source

GetPlotAreaCoordinate(Object, Range<IComparable>, Double)

Returns the plot area coordinate of a given value.

Declaration
protected abstract UnitValue GetPlotAreaCoordinate(object value, Range<IComparable> currentRange, double length)
Parameters
Type Name Description
System.Object value

The value to return the plot area coordinate for.

Range<System.IComparable> currentRange

The value range to use when calculating the plot area coordinate.

System.Double length

The length of the axis.

Returns
Type Description
UnitValue

The plot area coordinate of the given value.

| Improve this Doc View Source

GetValueAtPosition(UnitValue)

Returns the value range given a plot area coordinate.

Declaration
protected abstract IComparable GetValueAtPosition(UnitValue value)
Parameters
Type Name Description
UnitValue value

The plot area coordinate.

Returns
Type Description
System.IComparable

A range of values at that plot area coordinate.

| Improve this Doc View Source

OnActualRangeChanged(Range<IComparable>)

Invalidates axis when the actual range changes.

Declaration
protected virtual void OnActualRangeChanged(Range<IComparable> range)
Parameters
Type Name Description
Range<System.IComparable> range

The new actual range.

| Improve this Doc View Source

OnObjectRegistered(IAxisListener)

If a new range provider is registered, update actual range.

Declaration
protected override void OnObjectRegistered(IAxisListener series)
Parameters
Type Name Description
IAxisListener series

The axis listener being registered.

Overrides
Axis.OnObjectRegistered(IAxisListener)
| Improve this Doc View Source

OnObjectUnregistered(IAxisListener)

If a range provider is unregistered, update actual range.

Declaration
protected override void OnObjectUnregistered(IAxisListener series)
Parameters
Type Name Description
IAxisListener series

The axis listener being unregistered.

Overrides
Axis.OnObjectUnregistered(IAxisListener)
| Improve this Doc View Source

OverrideDataRange(Range<IComparable>)

Overrides the data range.

Declaration
protected virtual Range<IComparable> OverrideDataRange(Range<IComparable> range)
Parameters
Type Name Description
Range<System.IComparable> range

The range to potentially override.

Returns
Type Description
Range<System.IComparable>

The overridden range.

| Improve this Doc View Source

Render(Size)

Renders the axis labels, tick marks, and other visual elements.

Declaration
protected override void Render(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Overrides
DisplayAxis.Render(Size)

Explicit Interface Implementations

| Improve this Doc View Source

IRangeAxis.GetValueAtPosition(UnitValue)

Returns the value range given a plot area coordinate.

Declaration
IComparable IRangeAxis.GetValueAtPosition(UnitValue value)
Parameters
Type Name Description
UnitValue value

The plot area coordinate.

Returns
Type Description
System.IComparable

A range of values at that plot area coordinate.

| Improve this Doc View Source

IRangeAxis.Origin

Gets the origin value on the axis.

Declaration
IComparable IRangeAxis.Origin { get; }
Returns
Type Description
System.IComparable
| Improve this Doc View Source

IRangeAxis.Range

Gets the actual maximum value.

Declaration
Range<IComparable> IRangeAxis.Range { get; }
Returns
Type Description
Range<System.IComparable>
| Improve this Doc View Source

IRangeConsumer.RangeChanged(IRangeProvider, Range<IComparable>)

Updates the axis with information about a provider's data range.

Declaration
void IRangeConsumer.RangeChanged(IRangeProvider usesRangeAxis, Range<IComparable> range)
Parameters
Type Name Description
IRangeProvider usesRangeAxis

The information provider.

Range<System.IComparable> range

The range of data in the information provider.

| Improve this Doc View Source

IValueMarginConsumer.ValueMarginsChanged(IValueMarginProvider, IEnumerable<ValueMargin>)

Updates the layout of the axis to accommodate a sequence of value margins.

Declaration
void IValueMarginConsumer.ValueMarginsChanged(IValueMarginProvider provider, IEnumerable<ValueMargin> valueMargins)
Parameters
Type Name Description
IValueMarginProvider provider

A value margin provider.

System.Collections.Generic.IEnumerable<ValueMargin> valueMargins

A sequence of value margins.

Implements

IRequireSeriesHost
IRangeAxis
IAxis
IRangeConsumer
IValueMarginConsumer

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source