AnchorPointAnnotation
アンカーポイントのアノテーションは、X1、Y1ポイントのみのIAnnotationです。このアノテーションは、さまざまなアライメントを使用して、座標の周りに固定することができます。詳細については、HorizontalAnchorPointおよびVerticalAnchorPointプロパティを参照してください。
継承元: AnnotationBase
実装: IAnchorPointAnnotation, IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable
コンストラクター
protected AnchorPointAnnotation()
anchorPointAnnotation = AnchorPointAnnotation()
AnchorPointAnnotationクラスの新しいインスタンスを初期化します。
プロパティ
public HorizontalAnchorPoint HorizontalAnchorPoint { get; set; }
value = anchorPointAnnotation.HorizontalAnchorPoint
anchorPointAnnotation.HorizontalAnchorPoint = value
取得または設定HorizontalAnchorPoint.左の値が、アノテーションのX1,Y1座標が水平方向に向いていることを意味します。センターの値は、アノテーションのX1,Y1座標が水平方向の中心にあることを意味します。 右側の値は、アノテーションのX1,Y1座標が水平方向に正しいことを意味します。
public double HorizontalOffset { get; }
value = anchorPointAnnotation.HorizontalOffset
ピクセル内で HorizontalOffset を計算して配置するときにこのアノテーションを適用します。
public VerticalAnchorPoint VerticalAnchorPoint { get; set; }
value = anchorPointAnnotation.VerticalAnchorPoint
anchorPointAnnotation.VerticalAnchorPoint = value
取得または設定VerticalAnchorPoint. 値が上にあると、アノテーションのX1,Y1座標は上面にあることを意味します。センターの値は、アノテーションのX1,Y1座標が中心的にあることを意味します。 ボトム値は、アノテーションのX1,Y1座標が縦方向に表示されていることを意味します。
public double VerticalOffset { get; }
value = anchorPointAnnotation.VerticalOffset
ピクセル内で VerticalOffset を計算して配置するときにこのアノテーションを適用します。
メソッド
protected AnnotationCoordinates GetAnchorAnnotationCoordinates(AnnotationCoordinates annotationCoordinates)
result = anchorPointAnnotation.GetAnchorAnnotationCoordinates(annotationCoordinates)
HorizontalOffsetとVerticalOffsetをannotationCoordinatesに申し込む
- annotationCoordinates
protected override Cursor GetSelectedCursor()
result = anchorPointAnnotation.GetSelectedCursor()
選択した時に注釈に使用するCursorを取得します
フィールド
public static readonly DependencyProperty HorizontalAnchorPointProperty
value = AnchorPointAnnotation.HorizontalAnchorPointProperty
電子メール:HorizontalAnchorPointDependencyProperty@
public static readonly DependencyProperty VerticalAnchorPointProperty
value = AnchorPointAnnotation.VerticalAnchorPointProperty
電子メール:VerticalAnchorPointPropertyDependencyProperty@