VerticalLineAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
A class for VerticalLineAnnotation
继承自: LineAnnotationWithLabelsBase
构造函数
VerticalLineAnnotation
public VerticalLineAnnotation()
verticalLineAnnotation = VerticalLineAnnotation()
创建 &% VerticalLineAnnotation 的新实例
属性
LabelsOrientation
public Orientation LabelsOrientation { get; set; }
value = verticalLineAnnotation.LabelsOrientation
verticalLineAnnotation.LabelsOrientation = value
获取或设置值, 表示标签将垂直还是水平放置
VerticalAlignment
public VerticalAlignment VerticalAlignment { get; set; }
value = verticalLineAnnotation.VerticalAlignment
verticalLineAnnotation.VerticalAlignment = value
获取或设置对接% VerticalLineAnnotation +%
方法
ApplyPlacement
protected override void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
verticalLineAnnotation.ApplyPlacement(label, placement)
使用 LabelPlacement enum 值定位 AnnotationLabel
- label
- 要放置的标签
- placement
- 放置参数
Attach
protected override void Attach(AnnotationLabel label)
verticalLineAnnotation.Attach(label)
请求在内部为当前实例附加一个 AnnotationLabel
- label
- The AnnotationLabel to attach
GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
verticalLineAnnotation.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 = verticalLineAnnotation.GetSelectedCursor()
选择时获得光标用于注释
GetUsedAxis
public override IAxis GetUsedAxis()
result = verticalLineAnnotation.GetUsedAxis()
返回轴,当前注释显示数据值
SetBasePoint
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
verticalLineAnnotation.SetBasePoint(newPoint, index, xAxis, yAxis)
内部调用以调用像素为单位的像素指向 X1,Y1,X2,Y2值。取像素为点 ()和基点 ,设置X,Y数据值.
- newPoint
- 像素点
- index
- 基点指数,其中0, 1, 2, 3 指注释的四个角
- xAxis
- 当前的 X 轴
- yAxis
- 当前的 Y 轴
字段
LabelsOrientationProperty
public static readonly DependencyProperty LabelsOrientationProperty
value = VerticalLineAnnotation.LabelsOrientationProperty
定义 & #% LabelDirection\% 属性
VerticalAlignmentProperty
public static readonly DependencyProperty VerticalAlignmentProperty
value = VerticalLineAnnotation.VerticalAlignmentProperty
定义 & #% VerticalAlignment\% 属性