AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

HorizontalLineAnnotationおよび VerticalLineAnnotation で使用できる AnnotationLabelを定義します。

継承元: Control

コンストラクター

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

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

プロパティ

AxisLabelStyle
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value

アクシスラベルに適用するスタイルをゲットまたはセットする

CanEditText
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value

ラベル内のテキストが編集可能かどうかを取得またはセットする

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

ラベル要素のCornerRadiusを受け取り、設定します

IsAxisLabel
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel

LabelPlacement ==LabelPlacement.Axis または ParentAnnotation.ResolveAutoPlacement () ==LabelPlacement.Axis が LabelPlacement ==LabelPlacement.Auto の場合、真を返します

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value

Gets or sets the LabelPlacement

LabelStyle
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value

ラベルに適用するスタイルを取得またはセットする

ParentAnnotation
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value

ラベルが付く親@LineAnnotationWithLabelsBaseを付与またはセットする

RotationAngle
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value

角度、度、時計回りの回転を得られるか、または置きます

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

ラベルのテキストを取得または設定する

TextFormatting
public string TextFormatting { get; set; }
value = annotationLabel.TextFormatting
annotationLabel.TextFormatting = value

テキストプロパティがデータ変数にバインドされると、TextFormattingをラベルに使用したり、TextFormattingを設定したり、設定したりできます。この機能は、AxisBaseTextFormatting@ プロパティーと同じ方法で動作します。

メソッド

GetAndAssertTemplateChild``1
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)

指定した名前とキャストからタイプまでTemplateChildを受け取り、結果がnullでないと主張します。

childName
テンプレート部分の名前。

戻り値: テンプレートの部分インスタンス

OnApplyTemplate
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()

派生したクラスにオーバーライドすると、アプリケーションコードや内部プロセス(再構築レイアウトパスなど)がApplyTemplateに電話するたびに呼び出されます。最も簡単な用語では、アプリケーション内のUI要素表示直前にメソッドが呼び出されます。詳細については、備考を参照してください。

フィールド

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

電子メール:AxisLabelDependnecyProperty@

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

電子メール:CanEditTextDependnecyProperty@

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

電子メール:CornerRadiusDependnecyProperty@

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

電子メール:LabelPlacementDependnecyProperty@

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

電子メール:LabelStyleDependnecyProperty@

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

電子メール:RotationAngleDependnecyProperty@

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

電子メール:TextFormattingDependnecyProperty@

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

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