RulerAnnotation
StockSharp.Xaml.Charting.Ultrachart
ルーラーの注釈。
継承元: AnnotationBase
コンストラクター
プロパティ
RulerHeight
public double RulerHeight { get; set; }
value = rulerAnnotation.RulerHeight
rulerAnnotation.RulerHeight = value
ルーラーの高さ。
RulerWidth
public double RulerWidth { get; set; }
value = rulerAnnotation.RulerWidth
rulerAnnotation.RulerWidth = value
ルーラー幅。
Text1
public string Text1 { get; set; }
value = rulerAnnotation.Text1
rulerAnnotation.Text1 = value
定規テキストの最初の行。
Text2
public string Text2 { get; set; }
value = rulerAnnotation.Text2
rulerAnnotation.Text2 = value
定規テキストの第二行。
メソッド
AttachInteractionHandlersTo
protected override void AttachInteractionHandlersTo(FrameworkElement source)
rulerAnnotation.AttachInteractionHandlersTo(source)
マウスのクリックを自動削除します。
DetachInteractionHandlersFrom
protected override void DetachInteractionHandlersFrom(FrameworkElement source)
rulerAnnotation.DetachInteractionHandlersFrom(source)
マウスのクリックを自動削除します。
FromCoordinate
protected override IComparable FromCoordinate(double coord, IAxis axis)
result = rulerAnnotation.FromCoordinate(coord, axis)
ピクセル座標をデータ値に変換
- coord
- ピクセル座標。
- axis
- データ値が計算される軸
戻り値: データ値
GetCurrentPlacementStrategy
protected override IAnnotationPlacementStrategy GetCurrentPlacementStrategy()
result = rulerAnnotation.GetCurrentPlacementStrategy()
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = rulerAnnotation.GetSelectedCursor()
選択した時に注釈に使用するCursorを取得します
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = rulerAnnotation.IsPointWithinBounds(point)
ポイントが現在のIHitTestable要素の境界内にある場合は、trueを返します
- point
- 試験のポイント
戻り値: ポイントが境界内にある場合 true
MakeInvisible
protected override void MakeInvisible()
rulerAnnotation.MakeInvisible()
表面境界から注釈が出てレイアウトシステムによって内部的に呼び出される
MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
rulerAnnotation.MakeVisible(coordinates)
表面に注釈が入るときレイアウト システムによって内部的に呼び出される
OnApplyTemplate
public override void OnApplyTemplate()
rulerAnnotation.OnApplyTemplate()
テンプレートの新規適用時にLayoutTransformer制御用のビジュアルツリーを作成します。
フィールド
RulerHeightProperty
public static readonly DependencyProperty RulerHeightProperty
value = RulerAnnotation.RulerHeightProperty
ルーラーの高さ。
RulerWidthProperty
public static readonly DependencyProperty RulerWidthProperty
value = RulerAnnotation.RulerWidthProperty
ルーラー幅。
Text1Property
public static readonly DependencyProperty Text1Property
value = RulerAnnotation.Text1Property
定規テキストの最初の行。
Text2Property
public static readonly DependencyProperty Text2Property
value = RulerAnnotation.Text2Property
定規テキストの第二行。