RulerAnnotation

StockSharp.Xaml.Charting.Ultrachart

尺注所出.

继承自: AnnotationBase

构造函数

RulerAnnotation
public RulerAnnotation()
rulerAnnotation = RulerAnnotation()

初始化了新的ICH实例.

属性

RulerHeight
public double RulerHeight { get; set; }
value = rulerAnnotation.RulerHeight
rulerAnnotation.RulerHeight = value

尺高相会.

RulerWidth
public double RulerWidth { get; set; }
value = rulerAnnotation.RulerWidth
rulerAnnotation.RulerWidth = value

尺宽.

Text1
public string Text1 { get; set; }
value = rulerAnnotation.Text1
rulerAnnotation.Text1 = value

出一行通标正文.

Text2
public string Text2 { get; set; }
value = rulerAnnotation.Text2
rulerAnnotation.Text2 = value

二行通标正文.

方法

AttachInteractionHandlersTo
protected override void AttachInteractionHandlersTo(FrameworkElement source)
rulerAnnotation.AttachInteractionHandlersTo(source)

鼠标点击时自动移动 。

DetachInteractionHandlersFrom
protected override void DetachInteractionHandlersFrom(FrameworkElement source)
rulerAnnotation.DetachInteractionHandlersFrom(source)

鼠标点击时自动移动 。

FromCoordinate
protected override IComparable FromCoordinate(double coord, IAxis axis)
result = rulerAnnotation.FromCoordinate(coord, axis)

将像素坐标转换为数据值

coord
相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
axis
计算数据值的轴

返回值: 数据值

GetCurrentPlacementStrategy
protected override IAnnotationPlacementStrategy GetCurrentPlacementStrategy()
result = rulerAnnotation.GetCurrentPlacementStrategy()
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = rulerAnnotation.GetSelectedCursor()

选择时获得光标用于注释

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = rulerAnnotation.IsPointWithinBounds(point)

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

point
测试点

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

MakeInvisible
protected override void MakeInvisible()
rulerAnnotation.MakeInvisible()

内部使用布局系统调用, 当注释超出表面的界限时

MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
rulerAnnotation.MakeVisible(coordinates)

内部通过布局系统调用, 当注释进入地表的界限时

OnApplyTemplate
public override void OnApplyTemplate()
rulerAnnotation.OnApplyTemplate()

当应用了新的模板时,为 LayoutTransformer 控制构建可视化树 。

字段

RulerHeightProperty
public static readonly DependencyProperty RulerHeightProperty
value = RulerAnnotation.RulerHeightProperty

尺高相会.

RulerWidthProperty
public static readonly DependencyProperty RulerWidthProperty
value = RulerAnnotation.RulerWidthProperty

尺宽.

Text1Property
public static readonly DependencyProperty Text1Property
value = RulerAnnotation.Text1Property

出一行通标正文.

Text2Property
public static readonly DependencyProperty Text2Property
value = RulerAnnotation.Text2Property

二行通标正文.