BoxAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
定义矩形或框注,该注可以放在图表上,具体坐标为X1,Y1,X2,Y2
继承自: AnnotationBase
构造函数
BoxAnnotation
public BoxAnnotation()
boxAnnotation = BoxAnnotation()
初始化了 & ##BoxAnnotation+# 类的新实例 。
属性
CornerRadius
public CornerRadius CornerRadius { get; set; }
value = boxAnnotation.CornerRadius
boxAnnotation.CornerRadius = value
Gets or sets the CornerRadius of the box
方法
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = boxAnnotation.GetSelectedCursor()
选择时获得光标用于注释
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = boxAnnotation.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
OnApplyTemplate
public override void OnApplyTemplate()
boxAnnotation.OnApplyTemplate()
当在衍生类中被推翻时,每当应用程序代码或内部进程称为ApplyTemplate时,都会被引用.
字段
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = BoxAnnotation.CornerRadiusProperty
定义 CornerRadius DependencyProperty 定义