AnnotationLabel
Определяет AnnotationLabel, который может использоваться в экземплярах HorizontalLineAnnotation и VerticalLineAnnotation.
Наследует: Control
Конструкторы
public AnnotationLabel()
annotationLabel = AnnotationLabel()
Инициирует новый экземпляр класса AnnotationLabel.
Свойства
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value
Получает или устанавливает стиль для применения к этикетке Axis
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
Получает или устанавливает, можно ли редактировать текст на этикетке
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
Получает или устанавливает CornerRadius элемента Label
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
Получает или устанавливает 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 для использования на этикетке, когда свойство Текста связано с Ценностью Данных. Это работает аналогично свойству AxisBase TextFormatting
Методы
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)
Получает TemplateChild по указанному имени и приводит к типу, утверждая, что результат не равен нулю.
- childName
- Имя шаблонной части.
Возвращает: Экземпляр части шаблона
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()
При перезагрузке в производном классе вызывается всякий раз, когда код приложения или внутренние процессы (такие как пропуск макета восстановления) звонят ApplyTemplate. Проще говоря, это означает, что метод называется непосредственно перед отображением элемента пользовательского интерфейса в приложении. Для получения дополнительной информации см. Замечания.
Поля
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
Определяет AxisLabel DependnecyProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
Определяет CanEditText DependnecyProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
Определяет CornerRadius DependnecyProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
Определяет LabelPlacement DependnecyProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
Определяет LabelStyle DependnecyProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
Определяет RotationAngle DependnecyProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
Определяет TextFormatting DependnecyProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
Определяет текст DependnecyProperty