TextAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

テキストアノテーションを定義します。これは、親 UltrachartSurfaceUltrachartSurfaceに読み書きされたテキストボックスを置くために使用できるかもしれません。

継承元: AnchorPointAnnotation

コンストラクター

TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()

TextAnnotationクラスの新しいインスタンスを初期化します。

プロパティ

CornerRadius
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value

TextAnnotationのCornerRadiusをゲットまたはセットする

Text
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value

TextAnnotationのテキストを取得または設定する

TextAlignment
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value

Gets or sets the TextAlignment

TextStretch
private Stretch TextStretch { get; set; }
value = textAnnotation.TextStretch
textAnnotation.TextStretch = value

テキストがコンテナを埋めるためにストレッチする方法を取得または設定します。X1、Y1、X2、Y2 プロパティがすべてセットされている場合、他のテキストは均一になります

メソッド

FocusInputTextArea
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()

TextAnnotation にテキスト入力領域をフォーカス

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = textAnnotation.IsPointWithinBounds(point)

ポイントが現在のIHitTestable要素の境界内にある場合は、trueを返します

point
試験のポイント

戻り値: ポイントが境界内にある場合 true

OnApplyTemplate
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()

派生クラスに上書きする場合は、アプリケーションコードや内部プロセスがApplyTemplate@に電話する時に呼び出されます。

RemoveFocusInputTextArea
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()

入力テキスト領域からフォーカスを削除します。テキストとラベルアノテーションのみ適用

フィールド

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty

電子メール:CornerRadiusDependencyProperty@

TextAlignmentProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty

電子メール:TextAlignmentDependencyProperty@

TextProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty

テキスト@DependencyProperty@を定義する

TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty

電子メール:TextStretchDependencyProperty@