LineArrowAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
LineArrowAnnotation提供了一行有X1,Y1,X2,Y2坐标并有箭头在尖端.
继承自: LineAnnotationBase
构造函数
LineArrowAnnotation
public LineArrowAnnotation()
lineArrowAnnotation = LineArrowAnnotation()
初始化了 & ##LineArrowAnnotation+# 类的新实例 。
属性
HeadLength
public double HeadLength { get; set; }
value = lineArrowAnnotation.HeadLength
lineArrowAnnotation.HeadLength = value
获取或设置以像素表示的页长。 随 HeadWidth 一起修改, 使线条宽度大或小
HeadWidth
public double HeadWidth { get; set; }
value = lineArrowAnnotation.HeadWidth
lineArrowAnnotation.HeadWidth = value
获取或设置以像素表示的页长。 随 HeadLength 一起修改, 使线条宽度大或小
方法
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = lineArrowAnnotation.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
OnApplyTemplate
public override void OnApplyTemplate()
lineArrowAnnotation.OnApplyTemplate()
当在衍生类中被推翻时,每当应用程序代码或内部进程称为ApplyTemplate时,都会被引用.
字段
HeadLengthProperty
public static readonly DependencyProperty HeadLengthProperty
value = LineArrowAnnotation.HeadLengthProperty
定义 HeadLength DependencyProperty 定义
HeadWidthProperty
public static readonly DependencyProperty HeadWidthProperty
value = LineArrowAnnotation.HeadWidthProperty
Defines the HeadWidth DependencyProperty