HorizontalLineAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

A class for HorizontalLineAnnotation

継承元: LineAnnotationWithLabelsBase

コンストラクター

HorizontalLineAnnotation
public HorizontalLineAnnotation()
horizontalLineAnnotation = HorizontalLineAnnotation()

HorizontalLineAnnotation@ の新規インスタンスを作成します。

プロパティ

HorizontalAlignment
public HorizontalAlignment HorizontalAlignment { get; set; }
value = horizontalLineAnnotation.HorizontalAlignment
horizontalLineAnnotation.HorizontalAlignment = value

HorizontalLineAnnotationのドッキングやセット

YDragStep
public double YDragStep { get; set; }
value = horizontalLineAnnotation.YDragStep
horizontalLineAnnotation.YDragStep = value

ドラッグステップをHorizontalLineAnnotationに決定する値を取得するか、設定する

メソッド

GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty X, DependencyProperty Y)
horizontalLineAnnotation.GetPropertiesFromIndex(index, X, Y)

内部でX1Property、Y1Property、X1Property、Y2Propertyペアを、アノテーションの周りの特定のインデックスに導きます。 e.g。 インデックス0はX1、Y1インデックス1を返しますX2、Y1インデックス2はX2、Y2インデックス3リターンX1、Y2

index
インデックス
X
Y
GetUsedAxis
public override IAxis GetUsedAxis()
result = horizontalLineAnnotation.GetUsedAxis()

現行のアノテーションがデータ値を示す軸を返します。

SetBasePoint
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
horizontalLineAnnotation.SetBasePoint(newPoint, index, xAxis, yAxis)

内部で呼び出されると、X1、Y1、X2、Y2 値にマーシャルピクセルポイントを割り当てます。ピクセルポイント()とベースポイントをとり、X、Y データ値を設定します。

newPoint
ピクセルポイント
index
ベースポイント指数は、0, 1, 2, 3 は、アノテーションの4つの角を参照します
xAxis
現在のX軸
yAxis
現在のY軸

フィールド

HorizontalAlignmentProperty
public static readonly DependencyProperty HorizontalAlignmentProperty
value = HorizontalLineAnnotation.HorizontalAlignmentProperty

HorizontalAlignment プロパティを定義する

YDragStepProperty
public static readonly DependencyProperty YDragStepProperty
value = HorizontalLineAnnotation.YDragStepProperty

YDragStep プロパティを定義する