AnnotationLabel
HorizontalLineAnnotationおよび VerticalLineAnnotation で使用できる AnnotationLabelを定義します。
継承元: Control
コンストラクター
public AnnotationLabel()
annotationLabel = AnnotationLabel()
AnnotationLabelクラスの新しいインスタンスを初期化します。
プロパティ
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value
アクシスラベルに適用するスタイルをゲットまたはセットする
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
ラベル内のテキストが編集可能かどうかを取得またはセットする
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
ラベル要素のCornerRadiusを受け取り、設定します
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel
LabelPlacement ==LabelPlacement.Axis または ParentAnnotation.ResolveAutoPlacement () ==LabelPlacement.Axis が LabelPlacement ==LabelPlacement.Auto の場合、真を返します
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value
Gets or sets the LabelPlacement
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value
ラベルに適用するスタイルを取得またはセットする
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value
ラベルが付く親@LineAnnotationWithLabelsBaseを付与またはセットする
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value
角度、度、時計回りの回転を得られるか、または置きます
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value
ラベルのテキストを取得または設定する
public string TextFormatting { get; set; }
value = annotationLabel.TextFormatting
annotationLabel.TextFormatting = value
テキストプロパティがデータ変数にバインドされると、TextFormattingをラベルに使用したり、TextFormattingを設定したり、設定したりできます。この機能は、AxisBaseTextFormatting@ プロパティーと同じ方法で動作します。
メソッド
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)
指定した名前とキャストからタイプまでTemplateChildを受け取り、結果がnullでないと主張します。
- childName
- テンプレート部分の名前。
戻り値: テンプレートの部分インスタンス
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()
派生したクラスにオーバーライドすると、アプリケーションコードや内部プロセス(再構築レイアウトパスなど)がApplyTemplateに電話するたびに呼び出されます。最も簡単な用語では、アプリケーション内のUI要素表示直前にメソッドが呼び出されます。詳細については、備考を参照してください。
フィールド
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
電子メール:AxisLabelDependnecyProperty@
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
電子メール:CanEditTextDependnecyProperty@
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
電子メール:CornerRadiusDependnecyProperty@
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
電子メール:LabelPlacementDependnecyProperty@
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
電子メール:LabelStyleDependnecyProperty@
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
電子メール:RotationAngleDependnecyProperty@
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
電子メール:TextFormattingDependnecyProperty@
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
テキスト@DependnecyProperty@を定義する