TextAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Определяет текстовую аннотацию, которую можно использовать для размещения меток только для чтения или текстовых полей для чтения и записи в родительском UltrachartSurface

Наследует: AnchorPointAnnotation

Конструкторы

TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()

Инициирует новый экземпляр класса TextAnnotation.

Свойства

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

Получает или устанавливает CornerRadius TextAnnotation

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

Получает или устанавливает 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

point
Точка, чтобы проверить

Возвращает: если точка находится в пределах

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

При перезагрузке в производном классе вызывается всякий раз, когда код приложения или внутренние процессы вызывают ApplyTemplate.

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

Удалите фокус из области ввода текста. Применяется только для аннотации текста и этикетки

Поля

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty

Определяет CornerRadius DependencyProperty

TextAlignmentProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty

Определяет TextAlignment DependencyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty

Определяет текст DependencyProperty

TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty

Определяет TextStretch DependencyProperty