AxisBase

StockSharp.Xaml.Charting.Visuals.Axes

为轴提供全Ultrachart的基态功能。衍生类型包括支持任意数值的NumericAxis,支持日期值的DateTimeAxis。轴可能被样式化,详见细节

继承自: ContentControl

实现: IAxis, IAxisParams, IHitTestable, ISuspendable, IInvalidatableElement, IDrawable, INotifyPropertyChanged, IXmlSerializable

构造函数

AxisBase
protected AxisBase()
axisBase = AxisBase()

初始化了 & ##AxisBase+# 类的新实例 。

属性

AnimatedVisibleRange
public IRange AnimatedVisibleRange { get; set; }
value = axisBase.AnimatedVisibleRange
axisBase.AnimatedVisibleRange = value

获取或设置轴的 VisibleRange 动画。 当设定此属性时, 轴将 VisibleRange 动画在 500 ms 的时间内为新值 。

AutoAlignVisibleRange
public bool AutoAlignVisibleRange { get; set; }
value = axisBase.AutoAlignVisibleRange
axisBase.AutoAlignVisibleRange = value

获取或设定是否将可见区域自动对齐数据。 请注意此属性仅适用于 X 轴。 默认值是 False。 当 VisibleRange 设置在 X 轴上时, 将 Min 和 Max 值与 XValues 中的数据值对齐

AutoRange
public AutoRange AutoRange { get; set; }
value = axisBase.AutoRange
axisBase.AutoRange = value

获取或设定% AutoRange +% 模式

AutoTicks
public bool AutoTicks { get; set; }
value = axisBase.AutoTicks
axisBase.AutoTicks = value

获取或设置值,表示是否自动计算出勾选。默认为 True 。

AxisAlignment
public AxisAlignment AxisAlignment { get; set; }
value = axisBase.AxisAlignment
axisBase.AxisAlignment = value

获取或设置此轴的 AxisAlignment。 默认是正确的 。

AxisBandsFill
public Color AxisBandsFill { get; set; }
value = axisBase.AxisBandsFill
axisBase.AxisBandsFill = value

获取或设置轴带的填充。 另请参见 DrawMajorBands 以启用此行为

AxisMode
public AxisMode AxisMode { get; set; }
value = axisBase.AxisMode
axisBase.AxisMode = value

获取或设置此轴运行于 AxisMode, e.g 。 线性或对数性

AxisTitle
public string AxisTitle { get; set; }
value = axisBase.AxisTitle
axisBase.AxisTitle = value

获取或设置轴标题

CurrentDatapointPixelSize
public virtual double CurrentDatapointPixelSize { get; }
value = axisBase.CurrentDatapointPixelSize

获得以像素计的当前数据点大小

CursorTextFormatting
public string CursorTextFormatting { get; set; }
value = axisBase.CursorTextFormatting
axisBase.CursorTextFormatting = value

获取或设置此光标上的标签文字格式字符串

DataRange
public IRange DataRange { get; }
value = axisBase.DataRange

获取轴心的 DataRange(数据的全部范围) 。

DefaultLabelProvider
public ILabelProvider DefaultLabelProvider { get; protected set; }
value = axisBase.DefaultLabelProvider
axisBase.DefaultLabelProvider = value

获得默认 ILabelProvider 实例 。

DrawLabels
public bool DrawLabels { get; set; }
value = axisBase.DrawLabels
axisBase.DrawLabels = value

如果 True, 在轴上绘制每个主勾选的标签, 否则跳过此步骤

DrawMajorBands
public bool DrawMajorBands { get; set; }
value = axisBase.DrawMajorBands
axisBase.DrawMajorBands = value

如果 True, 绘制主轴带( 主要网格线之间的填充区域), 否则跳过此步骤

DrawMajorGridLines
public bool DrawMajorGridLines { get; set; }
value = axisBase.DrawMajorGridLines
axisBase.DrawMajorGridLines = value

如果 True, 绘制主网格线条, 否则跳过此步骤

DrawMajorTicks
public bool DrawMajorTicks { get; set; }
value = axisBase.DrawMajorTicks
axisBase.DrawMajorTicks = value

如果 True, 绘制主勾引行, 否则跳过此步骤

DrawMinorGridLines
public bool DrawMinorGridLines { get; set; }
value = axisBase.DrawMinorGridLines
axisBase.DrawMinorGridLines = value

如果 True, 绘制小网格线条, 否则跳过此步骤

DrawMinorTicks
public bool DrawMinorTicks { get; set; }
value = axisBase.DrawMinorTicks
axisBase.DrawMinorTicks = value

如果 True, 绘制小勾引行, 否则跳过此步骤

FlipCoordinates
public bool FlipCoordinates { get; set; }
value = axisBase.FlipCoordinates
axisBase.FlipCoordinates = value

获取或设置一面旗,表示是否要为此轴翻转勾选和像素坐标生成, 导致轴勾和图表在轴向上翻转

GridLinesPanel
protected IGridLinesPanel GridLinesPanel { get; }
value = axisBase.GridLinesPanel

将GridLinesPanel 实例从母UltrachartSurface 中取出

GrowBy
public IRange<double> GrowBy { get; set; }
value = axisBase.GrowBy
axisBase.GrowBy = value

获取或设置 GrowBy 系数。 e.g (0. 1, 0.2) 将增加数据范围以外的轴宽 10% (min)和 20% (最大)

HasDefaultVisibleRange
public bool HasDefaultVisibleRange { get; }
value = axisBase.HasDefaultVisibleRange

获取% VisibleRange QQ 是否有默认值

HasValidVisibleRange
public bool HasValidVisibleRange { get; }
value = axisBase.HasValidVisibleRange

获得 VisibleRange 是否有效, e.g. 是否无效, 是否为 NaN, Max 和 Min 的区别不是 0

Id
public string Id { get; set; }
value = axisBase.Id
axisBase.Id = value

获取或设置此轴的字符串 Id。 用于关联的 & & & > IRenderableSeries > 和 & > YAxisDragModifier > 。

IsAxisFlipped
public bool IsAxisFlipped { get; }
value = axisBase.IsAxisFlipped

获取当前轴是否被翻转(%% e.g+%. YAAXs 在下或上方, 或 XAXs 在左或右)

IsCategoryAxis
public virtual bool IsCategoryAxis { get; }
value = axisBase.IsCategoryAxis

获得一个值,以表示此实例是否为分类轴 。

IsCenterAxis
public bool IsCenterAxis { get; set; }
value = axisBase.IsCenterAxis
axisBase.IsCenterAxis = value

获取或设定当前轴是否应置于图表中心

IsHorizontalAxis
public virtual bool IsHorizontalAxis { get; }
value = axisBase.IsHorizontalAxis

获取当前轴是否水平

IsLabelCullingEnabled
public bool IsLabelCullingEnabled { get; set; }
value = axisBase.IsLabelCullingEnabled
axisBase.IsLabelCullingEnabled = value

获取或设置一个值, 表示标签 Culling 是否启用( 当标签重叠时) 。 @% AxisPanel%%%% incentral

IsLogarithmicAxis
public virtual bool IsLogarithmicAxis { get; }
value = axisBase.IsLogarithmicAxis

获得一个数值,以表示此实例是否为对数轴。

IsPolarAxis
public virtual bool IsPolarAxis { get; }
value = axisBase.IsPolarAxis

获得一个数值,显示此实例是否为极轴 。

IsPrimaryAxis
public bool IsPrimaryAxis { get; set; }
value = axisBase.IsPrimaryAxis
axisBase.IsPrimaryAxis = value

获取或设定当前轴是否是轴收藏中的主要轴

IsStaticAxis
public bool IsStaticAxis { get; set; }
value = axisBase.IsStaticAxis
axisBase.IsStaticAxis = value

获取或设定当前轴是否为静态轴

IsSuspended
public bool IsSuspended { get; }
value = axisBase.IsSuspended

获得一个值,显示当前是否暂停目标更新

IsXAxis
public bool IsXAxis { get; private set; }
value = axisBase.IsXAxis
axisBase.IsXAxis = value

获取当前轴是否为 X- 轴

LabelProvider
public ILabelProvider LabelProvider { get; set; }
value = axisBase.LabelProvider
axisBase.LabelProvider = value

获取或设置一个 & ##ILabelProvider++实例,可用于程序上覆盖文本和光标标签的格式。例参见 & ##DefaultLabelProvider++和 & ##TradeChartAxisLabelProvider+++

MajorDelta
public IComparable MajorDelta { get; set; }
value = axisBase.MajorDelta
axisBase.MajorDelta = value

获取或设置 Delta 少校

MajorGridLineStyle
public Style MajorGridLineStyle { get; set; }
value = axisBase.MajorGridLineStyle
axisBase.MajorGridLineStyle = value

获取或设置主要网格线样式(TargetType Line),该线适用于由此轴绘制的所有主要网格线

MajorLineStroke
public Brush MajorLineStroke { get; set; }
value = axisBase.MajorLineStroke
axisBase.MajorLineStroke = value

获取或设置此轴的主要线条

MajorTickLineStyle
public Style MajorTickLineStyle { get; set; }
value = axisBase.MajorTickLineStyle
axisBase.MajorTickLineStyle = value

获取或设置主勾选行样式(%% TargetType%%%% Line), 并应用到此轴上的所有主要勾选

MaxAutoTicks
public int MaxAutoTicks { get; set; }
value = axisBase.MaxAutoTicks
axisBase.MaxAutoTicks = value

获取或设置最大勾。

MinimalZoomConstrain
public IComparable MinimalZoomConstrain { get; set; }
value = axisBase.MinimalZoomConstrain
axisBase.MinimalZoomConstrain = value

获取或设置轴的 MinimalZoomConstrain。 用于设定 VisibleRange 的 Min 和 Max 之间的最小距离

MinorDelta
public IComparable MinorDelta { get; set; }
value = axisBase.MinorDelta
axisBase.MinorDelta = value

获取或设置小三角洲

MinorGridLineStyle
public Style MinorGridLineStyle { get; set; }
value = axisBase.MinorGridLineStyle
axisBase.MinorGridLineStyle = value

获取或设置小网格线样式(%% TargetType%%%% Line), 应用到由此轴绘制的所有小网格线

MinorLineStroke
public Brush MinorLineStroke { get; set; }
value = axisBase.MinorLineStroke
axisBase.MinorLineStroke = value

获取或设置此轴的线条

MinorsPerMajor
public int MinorsPerMajor { get; set; }
value = axisBase.MinorsPerMajor
axisBase.MinorsPerMajor = value

获取或设定每个主勾选的 Delta 微小勾选次数

MinorTickLineStyle
public Style MinorTickLineStyle { get; set; }
value = axisBase.MinorTickLineStyle
axisBase.MinorTickLineStyle = value

获取或设置小勾勾行样式(%% TargetType%%%% 线), 适用于此轴上的所有主要勾勾

ModifierAxisCanvas
public IAnnotationCanvas ModifierAxisCanvas { get; }
value = axisBase.ModifierAxisCanvas

获取 ModifierAxisCanvas, 可用于覆盖画布上的标记

Orientation
public Orientation Orientation { get; set; }
value = axisBase.Orientation
axisBase.Orientation = value

获取或设置轴方向,%\e.g\\。水平( X轴) 或垂直( Y轴)

ParentSurface
public IUltrachartSurface ParentSurface { get; set; }
value = axisBase.ParentSurface
axisBase.ParentSurface = value

获取或设定此轴与

RenderSurface
protected IRenderSurface RenderSurface { get; }
value = axisBase.RenderSurface

将RenderSurface 实例从母UltrachartSurface 中取出

Scrollbar
public UltrachartScrollbar Scrollbar { get; set; }
value = axisBase.Scrollbar
axisBase.Scrollbar = value

获取或设定轴 #% ScrollBar {}

Services
public IServiceContainer Services { get; set; }
value = axisBase.Services
axisBase.Services = value

获取全Ultrachart中提供服务访问的 ServiceContainer 。 ServiceContainers 是一个每 UltrachartSurface 实例创建的, 并共享到周边组件, 如 AxisBase 、 BaseRenderableSeries 、 ChartModifierBase 实例。 完整的服务列表请参见 ServiceContainer 上的评论 。

StockSharp#Xaml#Charting#Visuals#Axes#IAxis#IsXAxis

获取当前轴是否为 X- 轴

StockSharp#Xaml#Charting#Visuals#IDrawable#Height

获取或设定元素的推荐高度.

返回值: 元素的高度, 在设备独立单位中(每单位1/96 第1英寸) 。 默认值为 NaN 。 此值必须等于或大于 0.0。 上方绑定信息请参见备注 。

StockSharp#Xaml#Charting#Visuals#IDrawable#Width

获取或设置元素的宽度。

返回值: 元素的宽度, 以设备独立单位(每单位1/ 96英寸) 为单位。 默认值为 NaN 。 此值必须等于或大于 0.0。 请参见上方绑定信息注释 。

StrokeThickness
public double StrokeThickness { get; set; }
value = axisBase.StrokeThickness
axisBase.StrokeThickness = value

获得或设置中风厚度.

TextFormatting
public string TextFormatting { get; set; }
value = axisBase.TextFormatting
axisBase.TextFormatting = value

获取或设置此轴上的勾选标签的文本格式字符串

TickCoordinatesProvider
public ITickCoordinatesProvider TickCoordinatesProvider { get; set; }
value = axisBase.TickCoordinatesProvider
axisBase.TickCoordinatesProvider = value

获取或设置当前轴上的 ITickCoordinatesProvider 实例,用于将 TickProvider 实例收到的数据值转换为轴线网格线、 滴答和标签绘图的坐标 。

TickLabelStyle
public Style TickLabelStyle { get; set; }
value = axisBase.TickLabelStyle
axisBase.TickLabelStyle = value

获取或设置此轴上的标签样式 。

TickProvider
public ITickProvider TickProvider { get; set; }
value = axisBase.TickProvider
axisBase.TickProvider = value

获取或设置当前轴上的一个 ITickProvider 实例,用于计算轴线、滴答和标签的数据值。

TickTextBrush
public Brush TickTextBrush { get; set; }
value = axisBase.TickTextBrush
axisBase.TickTextBrush = value

获取或设置用于文本标签的勾选文本刷子

TitleFontSize
public double TitleFontSize { get; set; }
value = axisBase.TitleFontSize
axisBase.TitleFontSize = value

获取或设置标题字体大小

TitleFontWeight
public FontWeight TitleFontWeight { get; set; }
value = axisBase.TitleFontWeight
axisBase.TitleFontWeight = value

获取或设置轴标题字体重量

TitleStyle
public Style TitleStyle { get; set; }
value = axisBase.TitleStyle
axisBase.TitleStyle = value

获取或设置轴标题的样式

VisibleRange
public IRange VisibleRange { get; set; }
value = axisBase.VisibleRange
axisBase.VisibleRange = value

获取或设置轴心的VisibleRange.

VisibleRangeLimit
public IRange VisibleRangeLimit { get; set; }
value = axisBase.VisibleRangeLimit
axisBase.VisibleRangeLimit = value

获取或设置轴的 VisibleRangeLimit。 这将用于剪接 ZoomExtents 和 AutoRange 操作中的轴线

VisibleRangeLimitMode
public RangeClipMode VisibleRangeLimitMode { get; set; }
value = axisBase.VisibleRangeLimitMode
axisBase.VisibleRangeLimitMode = value

获取或设置轴的 VisibleRangeLimitMode。 此属性定义了 VisibleRangeLimit 的哪些部分将被轴使用 。

方法

AnimateVisibleRangeTo
public void AnimateVisibleRangeTo(IRange to, TimeSpan duration)
axisBase.AnimateVisibleRangeTo(to, duration)

将轴线的可见范围显示为指定期限的VisibleRange。另见默认持续时间为500毫秒的AnimatedVisibleRange 属性

to
结束范围
duration
动画的延续时间.
AssertDataType
public virtual void AssertDataType(Type dataType)
axisBase.AssertDataType(dataType)

指定通过的类型由当前轴执行支持

dataType
AssertRangeType
protected virtual void AssertRangeType(IRange range)
axisBase.AssertRangeType(range)

确定此轴的 IRang 类型正确

range
伸张范围
CalculateDataRange
protected virtual IRange CalculateDataRange()
result = axisBase.CalculateDataRange()

计算当前轴的数据范围

CalculateDelta
protected abstract void CalculateDelta()
axisBase.CalculateDelta()

计算三角洲的用途 在这个渲染口

CalculateTicks
protected virtual TickCoordinates CalculateTicks()
result = axisBase.CalculateTicks()

被衍生类型所覆盖, 称为内部计算 MinorTicks, MajorTicks 在轴线绘制前

CalculateYRange
public abstract IRange CalculateYRange(RenderPassInfo renderPassInfo)
result = axisBase.CalculateYRange(renderPassInfo)

获得轴的对齐 VisibleRange, 并带有可选的 ZoomToFit 旗。 如果 ZoomToFit 是真的, 它会返回 DataRange 加上任何适用于轴的 GrowBy

renderPassInfo
包含当前渲染传出数据 Struct

返回值: The VisibleRange of the axis

Clear
public void Clear()
axisBase.Clear()

清除轴标签, 勾选此轴

Clone
public abstract IAxis Clone()
result = axisBase.Clone()

克隆人这个例子。

CoerceVisibleRange
protected virtual void CoerceVisibleRange()
axisBase.CoerceVisibleRange()

当在衍生类别中被覆盖时,在应用前会根据轴值更改 VisibleRange 的值

CoerceZeroRange
protected virtual IRange CoerceZeroRange(IRange maximumRange)
result = axisBase.CoerceZeroRange(maximumRange)

如果当前范围为零, 则强制

maximumRange
当前最大范围
ConvertTickToDataValue
protected virtual IComparable ConvertTickToDataValue(IComparable value)
result = axisBase.ConvertTickToDataValue(value)

当在衍生类中被覆盖时, 将勾选值转换为数据值。 例如, 在%\CategoryDateTimeAxis+% 中, 可以在 \\DateTimes+% 中被覆盖, 以在指数和%\DateTimes+% 之间转换 。

value
DecrementSuspend
public void DecrementSuspend()
axisBase.DecrementSuspend()

每次处置目标悬浮器时, IUpdateSuspender 都会被调用。 当最终目标悬浮器被处理后, ResumeUpdates 被调用 。

DrawGridLine
protected void DrawGridLine(IRenderContext2D renderContext, IPen2D linePen, XyDirection direction, float atPoint)
axisBase.DrawGridLine(renderContext, linePen, direction, atPoint)

在 RenderSurface 上绘制一条网格线,使用指定的样式(TargetType Line),XyDirection和整数坐标.

renderContext
The IRenderContext2D instance to draw to
linePen
应用到网格线上的笔 (TargetType IPen2D)
direction
绘制 X 或 Y 方向
atPoint
要绘制的整数坐标。 如果方向是 X 方向, 被编码为 X 坐标, 否则是 Y 坐标 。
DrawGridLines
protected virtual void DrawGridLines(IRenderContext2D renderContext, TickCoordinates tickCoords)
axisBase.DrawGridLines(renderContext, tickCoords)

调用内部在轴线绘制前绘制网格线

DrawTickLabels
protected virtual void DrawTickLabels(AxisCanvas canvas, TickCoordinates tickCoords, float offset)
axisBase.DrawTickLabels(canvas, tickCoords, offset)

在渲染通过时绘制勾选符和网格线

canvas
画上标签的画布。
tickCoords
包含所有坐标的勾和网格线的勾选coords。
offset
FormatCursorText
public virtual string FormatCursorText(IComparable value, bool hitTest)
result = axisBase.FormatCursorText(value, hitTest)

光标的字符串格式文本, 使用 CursorTextFormatting 属性作为格式化字符串

value
格式的数据值
hitTest
克克击出试.

返回值: 字符串格式化数据值

FormatText
public virtual string FormatText(IComparable value, string format)
result = axisBase.FormatText(value, format)

字符串格式化文本,使用 TextFormatting 属性作为格式化字符串

value
格式的数据值
format
复合格式字符串

返回值: 字符串格式化数据值

FormatText
public virtual string FormatText(IComparable value)
result = axisBase.FormatText(value)

字符串格式化文本,使用 TextFormatting 属性作为格式化字符串

value
格式的数据值

返回值: 字符串格式化数据值

GetAxisOffset
public virtual double GetAxisOffset()
result = axisBase.GetAxisOffset()

返回轴相对于 RenderSurface 的偏移。用于轴垂直或水平堆放的大小写。

GetAxisParams
public virtual AxisParams GetAxisParams()
result = axisBase.GetAxisParams()

获得关于当前轴线设置的% AxisParams+% 结构信息

GetBoundsRelativeTo
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = axisBase.GetBoundsRelativeTo(relativeTo)

获取当前 & ###HitTestable### 元素相对于另一个 & ##HitTestable#% 元素的界限

relativeTo
相对之.
GetCoordinate
public virtual double GetCoordinate(IComparable value)
result = axisBase.GetCoordinate(value)

鉴于数据值, 返回轴上该值的 x 或 y 像素坐标。 此操作与 Point 正好相反 。

value
The DataValue as input

返回值: 与此轴对应的输入 DataValue 的像素坐标

GetCurrentCoordinateCalculator
public virtual ICoordinateCalculator<double> GetCurrentCoordinateCalculator()
result = axisBase.GetCurrentCoordinateCalculator()

以当前可见范围和轴类型为基础,为此轴获取当前 ICoordinateCalculator

GetCurrentInteractivityHelper
public IAxisInteractivityHelper GetCurrentInteractivityHelper()
result = axisBase.GetCurrentInteractivityHelper()

返回当前 IAxisInteractivityHelper, 在当前渲染传出时有效, 可用于与轴(Scroll, Zom, Pan) 交互 。

GetDataValue
public virtual IComparable GetDataValue(double pixelCoordinate)
result = axisBase.GetDataValue(pixelCoordinate)

将像素坐标转换成此轴的数据值。

pixelCoordinate
GetDefaultNonZeroRange
public abstract IRange GetDefaultNonZeroRange()
result = axisBase.GetDefaultNonZeroRange()

返回默认的非零 IRange, 由 Ultrachart 内部调用, 将轴的 VisibleRange 重置为未定义状态

GetDeltaCalculator
protected abstract IDeltaCalculator GetDeltaCalculator()
result = axisBase.GetDeltaCalculator()

返回一个用于计算 MajorDelta 、 MinorDelta 的数据值的 IDeltaCalculator 实例。通过衍生类型来覆盖,以便进行该轴类型的计算。

返回值: 个 IDeltaCalculator 实例

GetMajorTickIndex
private decimal GetMajorTickIndex(double tick)
result = axisBase.GetMajorTickIndex(tick)

返回主勾选索引 e.g 值 0 有索引 #0, 0 + MajorDelta - 1, 0 + 2 * MajorDelta - 2等...

tick
GetMaxAutoTicks
protected virtual uint GetMaxAutoTicks()
result = axisBase.GetMaxAutoTicks()

计算最大自动勾选数量, 即 QQ 1

GetMaximumRange
public virtual IRange GetMaximumRange()
result = axisBase.GetMaximumRange()

获得轴的最大范围, 等于 DataRange, 包括任何应用的 GrowBy 系数

GetOffsetForLabels
protected virtual double GetOffsetForLabels()
result = axisBase.GetOffsetForLabels()

返回轴的偏移

GetPointRange
public IntegerRange GetPointRange()
result = axisBase.GetPointRange()

获取当前在范围的 X-数据数组的整数指数。

返回值: 目前在幅度内的 X-数据索引

GetSchema
public XmlSchema GetSchema()
result = axisBase.GetSchema()

返回一个 XmlSchema, 描述由 WriteXml 方法所生成、 由 ReadXml 方法所消耗的物体的 XML 表示

GetSupportedTypes
protected abstract List<Type> GetSupportedTypes()
result = axisBase.GetSupportedTypes()

返回当前轴设计用来工作的类型列表

GetUndefinedRange
public abstract IRange GetUndefinedRange()
result = axisBase.GetUndefinedRange()

返回未定义的 IRang, 由 Ultrachart 内部调用, 将轴的 VisibleRange 重置为未定义状态

GetWindowedYRange
public IRange GetWindowedYRange(IDictionary<string, IRange> xRanges)
result = axisBase.GetWindowedYRange(xRanges)

仅返回该轴的最大范围(通过该轴上的数据序列),基于“窗口”=“在当前视图中播放的”使用GrowBy ()

xRanges
根据相应的 x 范围计算最大范围
HitTest
public virtual AxisInfo HitTest(Point atPoint)
result = axisBase.HitTest(atPoint)

在轴上进行命中测试, 在特定的 x 或 y 像素坐标下返回数据值。 此操作与 IComparable 正好相反 。

atPoint
与此轴对应的输入 DataValue 的像素坐标

返回值: 包含数据值和该坐标格式化数据值的 AxisInfo 结构

HitTest
public virtual AxisInfo HitTest(IComparable dataValue)
result = axisBase.HitTest(dataValue)

在 AxisBase 上执行 HitTest 操作。 提供的数据用于转换为 AxisInfo struct, 包含轴信息以及格式化值

dataValue
数据值.

返回值: The AxisInfo result

InvalidateElement
public void InvalidateElement()
axisBase.InvalidateElement()

同步请求元素重画自身和子 。 如果元素是可被ISuspendable 且当前为 IsSuspended(在 SuspendUpdates / ResumeUpdates 呼叫中), 则会忽略 。

InvalidateParent
protected static void InvalidateParent(DependencyObject d, DependencyPropertyChangedEventArgs e)
AxisBase.InvalidateParent(d, e)

提供% DependencyProperty+% 调用, 使父的% UltrachartSurface+% 无效

d
e
IsOfValidType
public abstract bool IsOfValidType(IRange range)
result = axisBase.IsOfValidType(range)

检查此轴是否不是 Null 且是否为有效类型

range
IsPointWithinBounds
public bool IsPointWithinBounds(Point point)
result = axisBase.IsPointWithinBounds(point)

如果点位于当前 HitTestable 元素的边界内, 返回真值

point
测试点

返回值: 如果点在界限内, 则为真

IsValidRange
public virtual bool IsValidRange(IRange range)
result = axisBase.IsValidRange(range)

检查此轴是否有效的可见范围

range
IsVisibleRangeValid
private bool IsVisibleRangeValid()
result = axisBase.IsVisibleRangeValid()

检查 VisibleRange 是否有效, e.g. 是否无效, 不是 NaN, Max 和 Min 的区别是正数 。

OnApplyTemplate
public override void OnApplyTemplate()
axisBase.OnApplyTemplate()

当在衍生类中被推翻时,每当应用程序代码或内部进程称为OnApplyTemplate时,都会被引用.

OnBeginRenderPass
public virtual void OnBeginRenderPass(RenderPassInfo renderPassInfo, IPointSeries firstPointSeries)
axisBase.OnBeginRenderPass(renderPassInfo, firstPointSeries)

传票开始前就内部打过电话

OnDraw
public void OnDraw(IRenderContext2D renderContext, IRenderPassData renderPassData)
axisBase.OnDraw(renderContext, renderPassData)

绘制实例时调用

renderContext
The IRenderContext2D used for drawing
renderPassData
包含此参数和参数
OnDrawAxis
protected virtual void OnDrawAxis(TickCoordinates tickCoords)
axisBase.OnDrawAxis(tickCoords)

当轴重划时调用 。

tickCoords
OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
axisBase.OnPropertyChanged(propertyName)

提出PropertyChanged活动,作为INotifyPropertyChanged执行的一部分

propertyName
财产名称.
OnVisibleRangeChanged
protected virtual void OnVisibleRangeChanged(VisibleRangeChangedEventArgs args)
axisBase.OnVisibleRangeChanged(args)

Raises the VisibleRangeChanged event

args
包含事件数据的 VisibleRangeChangedEventArgs
ReadXml
public virtual void ReadXml(XmlReader reader)
axisBase.ReadXml(reader)

从它的XML 代表生成 AxisBase 。

reader
ResumeUpdates
public void ResumeUpdates(IUpdateSuspender updateSuspender)
axisBase.ResumeUpdates(updateSuspender)

续集目标更新,计划由IUpdateSuspender调用

Scroll
public void Scroll(double pixelsToScroll, ClipMode clipMode, TimeSpan duration)
axisBase.Scroll(pixelsToScroll, clipMode, duration)

以指定动画持续时间的像素数量来滚动当前 VisibleRange

pixelsToScroll
从当前可见范围滚动 N 像素
clipMode
定义滚动在到达轴线范围边缘时的表现。 e.g 。 ClipMode.ClipAtExtents 防止在轴线以外进行平板, ClipMode.None 允许在轴线以外进行平板
duration
缩放到等宽时动画的持续时间
Scroll
public void Scroll(double pixelsToScroll, ClipMode clipMode)
axisBase.Scroll(pixelsToScroll, clipMode)

以指定的像素数滚动当前 VisibleRange

pixelsToScroll
从当前可见范围滚动 N 像素
clipMode
定义滚动在到达轴线范围边缘时的表现。 e.g 。 ClipMode.ClipAtExtents 防止在轴线以外进行平板, ClipMode.None 允许在轴线以外进行平板
ScrollByDataPoints
public virtual void ScrollByDataPoints(int pointAmount, TimeSpan duration)
axisBase.ScrollByDataPoints(pointAmount, duration)

通过指定数量的数据点将当前VisibleRange与指定动画持续时间相转换

pointAmount
起始可见区域滚动的点数
duration
缩放到等宽时动画的持续时间
ScrollByDataPoints
public void ScrollByDataPoints(int pointAmount)
axisBase.ScrollByDataPoints(pointAmount)

通过指定数据点数将当前 VisibleRange 转换为

pointAmount
起始可见范围滚动的数据点数
ScrollTo
public virtual void ScrollTo(IRange startVisibleRange, double pixelsToScroll)
axisBase.ScrollTo(startVisibleRange, pixelsToScroll)

从开始的 IRang , 滚动到指定像素数的新范围

startVisibleRange
开始可见范围
pixelsToScroll
从可见的起始范围滚动 N 像素
ScrollToWithLimit
public virtual void ScrollToWithLimit(IRange startVisibleRange, double pixelsToScroll, IRange rangeLimit)
axisBase.ScrollToWithLimit(startVisibleRange, pixelsToScroll, rangeLimit)

从开始的 IRang, 滚动到由指定像素数组成的新范围, 并设定范围限制

startVisibleRange
开始可见范围
pixelsToScroll
从可见的起始范围滚动 N 像素
rangeLimit
范围限制。
SetMouseCursor
public void SetMouseCursor(Cursor cursor)
axisBase.SetMouseCursor(cursor)

设置此轴的光标

cursor
光标实例
SuspendUpdates
public IUpdateSuspender SuspendUpdates()
result = axisBase.SuspendUpdates()

悬停绘制目标上的最新消息, 直至返回对象处理完毕, 此时将发出最后的绘图调用

返回值: 可支配更新悬浮器

TranslatePoint
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = axisBase.TranslatePoint(point, relativeTo)

将点相对于其他可测试元素翻译

point
关键是...
relativeTo
相对之.
TryApplyVisibleRange
private bool TryApplyVisibleRange(IRange newRange, IRange oldRange)
result = axisBase.TryApplyVisibleRange(newRange, oldRange)

当当前 VisibleRange 无效时, 如果两个范围无效, 尝试将其替换为., 丢出一个例外

newRange
适用范围
oldRange
上个 VisibleRange + 个

返回值: 表示VisibleRange是否应用的数值

ValidateAxis
public void ValidateAxis()
axisBase.ValidateAxis()

调用以检查轴属性是否对渲染有效。 如果无效, 将会丢弃例外

ValidateVisibleRange
private void ValidateVisibleRange(IRange range)
axisBase.ValidateVisibleRange(range)

如果 VisibleRange 类型错误, 或 VisibleRange.Min > VisibleRange.Max, 则丢出适当的例外

WriteXml
public virtual void WriteXml(XmlWriter writer)
axisBase.WriteXml(writer)

Converts AxisBase into its XML representation.

writer
Zoom
public void Zoom(double fromCoord, double toCoord, TimeSpan duration)
axisBase.Zoom(fromCoord, toCoord, duration)

使用新范围起步坐标和新范围起步坐标,对当前轴进行放大

fromCoord
新范围的坐标以像素开头
toCoord
新范围的坐标以像素为结尾
duration
缩放到等宽时动画的持续时间
Zoom
public void Zoom(double fromCoord, double toCoord)
axisBase.Zoom(fromCoord, toCoord)

使用新范围起步坐标和新范围起步坐标,对当前轴进行放大

fromCoord
新范围的坐标以像素开头
toCoord
新范围的坐标以像素为结尾
ZoomBy
public void ZoomBy(double minFraction, double maxFraction, TimeSpan duration)
axisBase.ZoomBy(minFraction, maxFraction, duration)

以区域起始乘以区域终点乘以显示当前轴

minFraction
范围开始的乘数
maxFraction
射程结束的乘数
duration
缩放到等宽时动画的持续时间
ZoomBy
public void ZoomBy(double minFraction, double maxFraction)
axisBase.ZoomBy(minFraction, maxFraction)

以区域起始乘以区域终点乘以显示当前轴

minFraction
范围开始的乘数
maxFraction
射程结束的乘数

事件

DataRangeChanged
public event EventHandler<EventArgs> DataRangeChanged
axisBase.DataRangeChanged += handler

数据范围改变时提高

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
axisBase.PropertyChanged += handler

属性改变时提高

VisibleRangeChanged
public event EventHandler<VisibleRangeChangedEventArgs> VisibleRangeChanged
axisBase.VisibleRangeChanged += handler

更改后升起 。

字段

AnimatedVisibleRangeProperty
public static readonly DependencyProperty AnimatedVisibleRangeProperty
value = AxisBase.AnimatedVisibleRangeProperty

定义动画 VisibleRange DependencyProperty

AutoAlignVisibleRangeProperty
public static readonly DependencyProperty AutoAlignVisibleRangeProperty
value = AxisBase.AutoAlignVisibleRangeProperty

定义 AutoAlignVisibleRange DependencyProperty 定义

AutoRangeProperty
public static readonly DependencyProperty AutoRangeProperty
value = AxisBase.AutoRangeProperty

Defines the AutoRange DependencyProperty

AutoTicksProperty
public static readonly DependencyProperty AutoTicksProperty
value = AxisBase.AutoTicksProperty

Defines the AutoTicks DependencyProperty

AxisAlignmentProperty
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisBase.AxisAlignmentProperty

定义 AxisAlignment DependencyProperty 定义

AxisBandsFillProperty
public static readonly DependencyProperty AxisBandsFillProperty
value = AxisBase.AxisBandsFillProperty

定义 AxisBandsFill DependencyProperty 定义

AxisModeProperty
public static readonly DependencyProperty AxisModeProperty
value = AxisBase.AxisModeProperty

Defines the AxisMode DependencyProperty

AxisTitleProperty
public static readonly DependencyProperty AxisTitleProperty
value = AxisBase.AxisTitleProperty

Defines the AxisTitle DependencyProperty

CursorTextFormattingProperty
public static readonly DependencyProperty CursorTextFormattingProperty
value = AxisBase.CursorTextFormattingProperty

定义 CursorTextFormatting DependencyProperty 定义

DefaultAxisId
public const string DefaultAxisId
value = AxisBase.DefaultAxisId

新轴的默认轴 ID

DefaultLabelProviderProperty
public static readonly DependencyProperty DefaultLabelProviderProperty
value = AxisBase.DefaultLabelProviderProperty

定义 DefaultFormatter DependencyProperty 定义

DrawLabelsProperty
public static readonly DependencyProperty DrawLabelsProperty
value = AxisBase.DrawLabelsProperty

定义 DrawLabels DependencyProperty 定义

DrawMajorBandsProperty
public static readonly DependencyProperty DrawMajorBandsProperty
value = AxisBase.DrawMajorBandsProperty

定义 DrawMajorBands DependencyProperty 定义

DrawMajorGridLinesProperty
public static readonly DependencyProperty DrawMajorGridLinesProperty
value = AxisBase.DrawMajorGridLinesProperty

定义 DrawMajorGridLines DependencyProperty 定义

DrawMajorTicksProperty
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisBase.DrawMajorTicksProperty

定义 DrawMajorTicks DependencyProperty 定义

DrawMinorGridLinesProperty
public static readonly DependencyProperty DrawMinorGridLinesProperty
value = AxisBase.DrawMinorGridLinesProperty

定义 DrawMinorGridLines DependencyProperty 定义

DrawMinorTicksProperty
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisBase.DrawMinorTicksProperty

定义 DrawMinorTicks DependencyProperty 定义

FlipCoordinatesProperty
public static readonly DependencyProperty FlipCoordinatesProperty
value = AxisBase.FlipCoordinatesProperty

定义 FlipCoordinates DependencyProperty 定义

GrowByProperty
public static readonly DependencyProperty GrowByProperty
value = AxisBase.GrowByProperty

Defines the GrowBy DependencyProperty

IdProperty
public static readonly DependencyProperty IdProperty
value = AxisBase.IdProperty

Defines the Id DependencyProperty

IsCenterAxisProperty
public static readonly DependencyProperty IsCenterAxisProperty
value = AxisBase.IsCenterAxisProperty

定义 IsCenterAxis DependencyProperty 定义

IsLabelCullingEnabledProperty
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisBase.IsLabelCullingEnabledProperty

IsLabelCullingEnabled DependencyProperty号机车

IsPrimaryAxisProperty
public static readonly DependencyProperty IsPrimaryAxisProperty
value = AxisBase.IsPrimaryAxisProperty

定义 IsPrimaryAxis DependencyProperty 定义

IsStaticAxisProperty
public static readonly DependencyProperty IsStaticAxisProperty
value = AxisBase.IsStaticAxisProperty

定义 IsStaticAxis DependencyProperty 定义

LabelProviderProperty
public static readonly DependencyProperty LabelProviderProperty
value = AxisBase.LabelProviderProperty

定义 LabelFormatter DependencyProperty 定义

MajorDeltaProperty
public static readonly DependencyProperty MajorDeltaProperty
value = AxisBase.MajorDeltaProperty

定义 MajorDelta DependencyProperty 定义

MajorGridLineStyleProperty
public static readonly DependencyProperty MajorGridLineStyleProperty
value = AxisBase.MajorGridLineStyleProperty

定义 MajorGridLineStyle DependencyProperty 定义

MajorTickLineStyleProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisBase.MajorTickLineStyleProperty

定义 MajorTickLineStyle DependencyProperty 定义

MaxAutoTicksProperty
public static readonly DependencyProperty MaxAutoTicksProperty
value = AxisBase.MaxAutoTicksProperty

定义 MaxAutoTicks DependencyProperty 定义

MinDistanceToBounds
protected const int MinDistanceToBounds
value = AxisBase.MinDistanceToBounds

定义到图边缘到 Cull 轴标签的最小距离

MinimalZoomConstrainProperty
public static readonly DependencyProperty MinimalZoomConstrainProperty
value = AxisBase.MinimalZoomConstrainProperty

定义 MinimalZoomConstrain DependencyProperty 定义

MinorDeltaProperty
public static readonly DependencyProperty MinorDeltaProperty
value = AxisBase.MinorDeltaProperty

定义 MinorDelta DependencyProperty 定义

MinorGridLineStyleProperty
public static readonly DependencyProperty MinorGridLineStyleProperty
value = AxisBase.MinorGridLineStyleProperty

定义 MinorGridLineStyle DependencyProperty 定义

MinorsPerMajorProperty
public static readonly DependencyProperty MinorsPerMajorProperty
value = AxisBase.MinorsPerMajorProperty

定义 MinorDelta DependencyProperty 定义

MinorTickLineStyleProperty
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisBase.MinorTickLineStyleProperty

定义 MinorTickLineStyle DependencyProperty 定义

OrientationProperty
public static readonly DependencyProperty OrientationProperty
value = AxisBase.OrientationProperty

定义方向 DependencyProperty

ScrollbarProperty
public static readonly DependencyProperty ScrollbarProperty
value = AxisBase.ScrollbarProperty

定义轴 {}ScrollBar}}

StrokeThicknessProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = AxisBase.StrokeThicknessProperty

定义 StrokeThickness DependencyProperty 定义

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AxisBase.TextFormattingProperty

定义 TextFormatting DependencyProperty 定义

TickCoordinatesProviderProperty
public static readonly DependencyProperty TickCoordinatesProviderProperty
value = AxisBase.TickCoordinatesProviderProperty

定义 TickCoordinatesProvider DependencyProperty 定义

TickLabelStyleProperty
public static readonly DependencyProperty TickLabelStyleProperty
value = AxisBase.TickLabelStyleProperty

Defines the AutoTicks DependencyProperty

TickProviderProperty
public static readonly DependencyProperty TickProviderProperty
value = AxisBase.TickProviderProperty

定义 TickProvider DependencyProperty 定义

TickTextBrushProperty
public static readonly DependencyProperty TickTextBrushProperty
value = AxisBase.TickTextBrushProperty

定义 TickTextBrush DependencyProperty 定义

TitleFontSizeProperty
public static readonly DependencyProperty TitleFontSizeProperty
value = AxisBase.TitleFontSizeProperty

定义 TitleFontWeight DependencyProperty 定义

TitleFontWeightProperty
public static readonly DependencyProperty TitleFontWeightProperty
value = AxisBase.TitleFontWeightProperty

定义 TitleFontWeight DependencyProperty 定义

TitleStyleProperty
public static readonly DependencyProperty TitleStyleProperty
value = AxisBase.TitleStyleProperty

定义 TitleStyle DependencyProperty 定义

VisibleRangeLimitModeProperty
public static readonly DependencyProperty VisibleRangeLimitModeProperty
value = AxisBase.VisibleRangeLimitModeProperty

定义 VisibleRangeLimitMode DependencyProperty 定义

VisibleRangeLimitProperty
public static readonly DependencyProperty VisibleRangeLimitProperty
value = AxisBase.VisibleRangeLimitProperty

定义 VisibleRangeLimit DependencyProperty 定义

VisibleRangePointProperty
public static readonly DependencyProperty VisibleRangePointProperty
value = AxisBase.VisibleRangePointProperty

定义 VisibleRangePoint DependencyProperty 定义

VisibleRangeProperty
public static readonly DependencyProperty VisibleRangeProperty
value = AxisBase.VisibleRangeProperty

定义 VisibleRange DependencyProperty 定义

ZeroRangeGrowBy
protected const double ZeroRangeGrowBy
value = AxisBase.ZeroRangeGrowBy

得到GrowBy Min和Max,如果VisibleRange.Min == VisibleRAnge.Max,则适用于VisibleRange

_currentCoordinateCalculator
protected ICoordinateCalculator<double> _currentCoordinateCalculator
value = axisBase._currentCoordinateCalculator

本次渲染的CoordinateCalculator 流传

_currentInteractivityHelper
protected IAxisInteractivityHelper _currentInteractivityHelper
value = axisBase._currentInteractivityHelper

本次渲染的InteractivityHelper 流传