IChartModifier

StockSharp.Xaml.Charting.ChartModifiers

定义 ChartModifierBase 的接口,用于扩展 UltrachartSurface 的交互或渲染

实现: IChartModifierBase, IReceiveMouseEvents, INotifyPropertyChanged

属性

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

获取或设置母机 UltrachartSurface 以运行

XAxis
public IAxis XAxis { get; }
value = iChartModifier.XAxis

获取父的 XAxis IAxis 实例 {}\\ UltrachartSurface}

YAxes
public IEnumerable<IAxis> YAxes { get; }
value = iChartModifier.YAxes

返回父 UltrachartSurface 上的 YAX

YAxis
public IAxis YAxis { get; }
value = iChartModifier.YAxis

获得主 YAAxis, 这是 YAXES 收藏的第一个轴

方法

GetYAxis
public IAxis GetYAxis(string axisId)
result = iChartModifier.GetYAxis(axisId)

获取父 UltrachartSurface 上的 YAxis IAxis 实例, 并附带指定的 Id 。

axisId
轴取的 ID

返回值: 轴心实例

IsPointWithinBounds
public bool IsPointWithinBounds(Point mousePoint, IHitTestable hitTestable)
result = iChartModifier.IsPointWithinBounds(mousePoint, hitTestable)

获取鼠标点是否在可击测试元素的界限之内。假设鼠标点尚未翻译( performs transform)

mousePoint
hitTestable
OnAnnotationCollectionChanged
public void OnAnnotationCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnAnnotationCollectionChanged(sender, args)

AnnotationCollection 更改时调用

OnXAxesCollectionChanged
public void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnXAxesCollectionChanged(sender, args)

使用 XAxes AxisCollection 更改调用

OnYAxesCollectionChanged
public void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnYAxesCollectionChanged(sender, args)

使用 XAxes AxisCollection 更改调用

ResetInertia
public void ResetInertia()
iChartModifier.ResetInertia()

即时停止任何能与这个修饰符相联的惯性.