AxisMarkerAnnotation
AxisMarkerAnnotationは Y-value にデータ・バウンドである軸ラベルを提供します。Y-Axis にマーカーを配置するために使用されて、シリーズの最新の値、または重要なポイントについて、シリーズのフィードバックを得ることができます。
コンストラクター
public AxisMarkerAnnotation()
axisMarkerAnnotation = AxisMarkerAnnotation()
AxisMarkerAnnotationクラスの新しいインスタンスを初期化します。
プロパティ
public IAxis Axis { get; }
value = axisMarkerAnnotation.Axis
AxisMarkerAnnotation が配置されているIAxisインスタンスを取得する
public AxisInfo AxisInfo { get; private set; }
value = axisMarkerAnnotation.AxisInfo
axisMarkerAnnotation.AxisInfo = value
PointerTemplateとLabelTemplateのDataContextとして内部で使用したMarkerValueのAxisInfoを、MarkerValueとLabelTemplateに取得
public string FormattedValue { get; set; }
value = axisMarkerAnnotation.FormattedValue
axisMarkerAnnotation.FormattedValue = value
アクシスマーカーのフォーマットされた値を取得またはセットします。デフォルトでは、Y1 へのデータ・バウンドです。
public DataTemplate LabelTemplate { get; set; }
value = axisMarkerAnnotation.LabelTemplate
axisMarkerAnnotation.LabelTemplate = value
AxisMarkerAnnotation@のラベルテンプレートを入手またはセットする
public double MarkerPointWidth { get; set; }
value = axisMarkerAnnotation.MarkerPointWidth
axisMarkerAnnotation.MarkerPointWidth = value
マーカーの先端幅をゲットまたはセットすると、ピクセルのマーカーの点の幅です。 デフォルト値は8です。 マーカーがスカッシュに見える場合は、このプロパティを変更してください!
public DataTemplate PointerTemplate { get; set; }
value = axisMarkerAnnotation.PointerTemplate
axisMarkerAnnotation.PointerTemplate = value
AxisMarkerAnnotation@のポインタテンプレートの獲得やセット
メソッド
protected override Cursor GetSelectedCursor()
result = axisMarkerAnnotation.GetSelectedCursor()
選択した時に注釈に使用するCursorを取得します
public override bool IsPointWithinBounds(Point point)
result = axisMarkerAnnotation.IsPointWithinBounds(point)
ポイントが現在のIHitTestable要素の境界内にある場合は、trueを返します
- point
- 試験のポイント
戻り値: ポイントが境界内にある場合 true
public override void OnApplyTemplate()
axisMarkerAnnotation.OnApplyTemplate()
派生クラスに上書きする場合は、アプリケーションコードや内部プロセスがApplyTemplate@に電話する時に呼び出されます。
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
axisMarkerAnnotation.OnAxisAlignmentChanged(axis, oldAlignment)
AxisAlignmentが変更されたことを通知したい場合、仮想メソッドをオーバーライド
- axis
- oldAlignment
protected override double ToCoordinate(IComparable dataValue, double canvasMeasurement, ICoordinateCalculator<double> coordCalc, XyDirection direction)
result = axisMarkerAnnotation.ToCoordinate(dataValue, canvasMeasurement, coordCalc, direction)
データをピクセル座標に変換
- dataValue
- 変換するデータ変数
- canvasMeasurement
- X または Y 方向のキャンバスのサイズ
- coordCalc
- 代表取締役社長 佐藤 正
- direction
- 変換のためのXまたはY方向
public override void Update(ICoordinateCalculator<double> xCoordinateCalculator, ICoordinateCalculator<double> yCoordinateCalculator)
axisMarkerAnnotation.Update(xCoordinateCalculator, yCoordinateCalculator)
座標計算機を更新し、親 UltrachartSurface の注釈位置をリフレッシュ
- xCoordinateCalculator
- 代表取締役社長 岡本 俊一
- yCoordinateCalculator
- ヤシックスICoordinateCalculator@
フィールド
protected internal static readonly DependencyProperty AxisInfoProperty
value = AxisMarkerAnnotation.AxisInfoProperty
電子メール:AxisInfoDependencyProperty@
public static readonly DependencyProperty FormattedValueProperty
value = AxisMarkerAnnotation.FormattedValueProperty
電子メール:FormattedValueDependencyProperty@
public static readonly DependencyProperty LabelTemplateProperty
value = AxisMarkerAnnotation.LabelTemplateProperty
電子メール:LabelTemplateDependencyProperty@
public static readonly DependencyProperty MarkerPointWidthProperty
value = AxisMarkerAnnotation.MarkerPointWidthProperty
電子メール:MarkerPointWidthDependencyProperty@
public static readonly DependencyProperty PointerTemplateProperty
value = AxisMarkerAnnotation.PointerTemplateProperty
電子メール:PointerTemplateDependencyProperty@