IAnchorPointAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

定义 Anchor- Point 注释的接口, 即只有一分 X1, Y1 点的 Inotion。 使用各种对接网, 可将该注释固定在坐标周围。 更多信息请参见 HorizontalAnchorPoint 和 VerticalAnchorPoint 属性

实现: IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable

属性

HorizontalAnchorPoint
public HorizontalAnchorPoint HorizontalAnchorPoint { get; set; }
value = iAnchorPointAnnotation.HorizontalAnchorPoint
iAnchorPointAnnotation.HorizontalAnchorPoint = value

获取或设置 HorizontalAnchorPoint 。 左值表示注释的 X1, Y1 坐标位位于左上水平。 Center 表示注释的 X1, Y1 坐标位位于中上水平水平。 Right 表示注释的 X1, Y1 坐标位位于右上水平 。

HorizontalOffset
public double HorizontalOffset { get; }
value = iAnchorPointAnnotation.HorizontalOffset

获得以像素计算出的 HorizontalOffset, 用于在放置时的注释

VerticalAnchorPoint
public VerticalAnchorPoint VerticalAnchorPoint { get; set; }
value = iAnchorPointAnnotation.VerticalAnchorPoint
iAnchorPointAnnotation.VerticalAnchorPoint = value

获取或设置 VerticalAnchorPoint 。 Top 值表示注解的 X1,Y1 坐标垂直于上; Center 值表示注解的 X1,Y1 坐标垂直于中; Bottom 值表示注解的 X1,Y1 坐标垂直于下.

VerticalOffset
public double VerticalOffset { get; }
value = iAnchorPointAnnotation.VerticalOffset

获得以像素计算出的 VerticalOffset, 用于在放置时的注释