AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

Определяет AnnotationLabel, который может использоваться в экземплярах HorizontalLineAnnotation и VerticalLineAnnotation.

Наследует: Control

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

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

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

Свойства

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

Получает или устанавливает стиль для применения к этикетке Axis

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 элемента Label

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

Получает или устанавливает 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 для использования на этикетке, когда свойство Текста связано с Ценностью Данных. Это работает аналогично свойству AxisBase TextFormatting

Методы

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

Получает TemplateChild по указанному имени и приводит к типу, утверждая, что результат не равен нулю.

childName
Имя шаблонной части.

Возвращает: Экземпляр части шаблона

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

При перезагрузке в производном классе вызывается всякий раз, когда код приложения или внутренние процессы (такие как пропуск макета восстановления) звонят ApplyTemplate. Проще говоря, это означает, что метод называется непосредственно перед отображением элемента пользовательского интерфейса в приложении. Для получения дополнительной информации см. Замечания.

Поля

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Определяет AxisLabel DependnecyProperty

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

Определяет CanEditText DependnecyProperty

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

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

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

Определяет LabelPlacement DependnecyProperty

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

Определяет LabelStyle DependnecyProperty

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

Определяет RotationAngle DependnecyProperty

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

Определяет TextFormatting DependnecyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

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