AnchorPointAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
Anchor-Point 注释是只有一个X1, Y1 点的注释。 使用各种对接网, 可以在坐标周围嵌入该注释。 更多信息请参看 HorizontalAnchorPoint 和 VerticalAnchorPoint 属性 。
继承自: AnnotationBase
实现: IAnchorPointAnnotation, IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable
构造函数
AnchorPointAnnotation
protected AnchorPointAnnotation()
anchorPointAnnotation = AnchorPointAnnotation()
初始化了 & ##AnchorPointAnnotation+# 类的新实例 。
属性
HorizontalAnchorPoint
public HorizontalAnchorPoint HorizontalAnchorPoint { get; set; }
value = anchorPointAnnotation.HorizontalAnchorPoint
anchorPointAnnotation.HorizontalAnchorPoint = value
获取或设置 HorizontalAnchorPoint 。 左值表示注释的 X1, Y1 坐标位位于左上水平。 Center 表示注释的 X1, Y1 坐标位位于中上水平水平。 Right 表示注释的 X1, Y1 坐标位位于右上水平 。
HorizontalOffset
public double HorizontalOffset { get; }
value = anchorPointAnnotation.HorizontalOffset
获得以像素计算出的 HorizontalOffset, 用于在放置时的注释
VerticalAnchorPoint
public VerticalAnchorPoint VerticalAnchorPoint { get; set; }
value = anchorPointAnnotation.VerticalAnchorPoint
anchorPointAnnotation.VerticalAnchorPoint = value
获取或设置 VerticalAnchorPoint 。 Top 值表示注解的 X1,Y1 坐标垂直于上; Center 值表示注解的 X1,Y1 坐标垂直于中; Bottom 值表示注解的 X1,Y1 坐标垂直于下.
VerticalOffset
public double VerticalOffset { get; }
value = anchorPointAnnotation.VerticalOffset
获得以像素计算出的 VerticalOffset, 用于在放置时的注释
方法
GetAnchorAnnotationCoordinates
protected AnnotationCoordinates GetAnchorAnnotationCoordinates(AnnotationCoordinates annotationCoordinates)
result = anchorPointAnnotation.GetAnchorAnnotationCoordinates(annotationCoordinates)
将 HorizontalOffset 和 VerticalOffset 应用到 annotationCoordinates
- annotationCoordinates
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = anchorPointAnnotation.GetSelectedCursor()
选择时获得光标用于注释
字段
HorizontalAnchorPointProperty
public static readonly DependencyProperty HorizontalAnchorPointProperty
value = AnchorPointAnnotation.HorizontalAnchorPointProperty
定义 HorizontalAnchorPoint DependencyProperty 定义
VerticalAnchorPointProperty
public static readonly DependencyProperty VerticalAnchorPointProperty
value = AnchorPointAnnotation.VerticalAnchorPointProperty
定义 VerticalAnchorPointProperty DependencyProperty 定义