LineAnnotationBase
StockSharp.Xaml.Charting.Visuals.Annotations
LineAnnotation、HorizontalLineAnnotation和VerticalLineAnnotation的共享属性基础类
继承自: AnnotationBase
属性
Stroke
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
获取或设置线条的笔刷
StrokeDashArray
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
获取或设置行中的 StrokeDashArray
StrokeThickness
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
获取或设置行中的 StrokeThickness
方法
GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)
内部用于为给定的索引在注释周围获取X1Property,Y1Property,X1Property,Y2Property对. e.g 索引 0返回X1,Y1 索引 1返回X2,Y1 索引 2返回X2,Y2 索引 3返回X1,Y2
- index
- 指数
- x
- X 协调依赖性属性, 要么是 X1 财产, 要么是 X2 财产
- y
- Y 协调依赖财产, 要么是 Y1 财产, 要么是 Y2 财产
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
选择时获得光标用于注释
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
字段
StrokeDashArrayProperty
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
定义 StrokeDashArray DependencyProperty 定义
StrokeProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Defines the Stroke DependencyProperty
StrokeThicknessProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
定义 StrokeThickness DependencyProperty 定义