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

获取或设置应用轴标签的样式

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 以在标签上使用。 这样做与 AxisBase TextFormatting 属性类似 。

方法

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

使用指定的名称获取 TemplateChild 并投放到 。 声明结果不无效

childName
模板部分的名称 。

返回值: 模板部分实例

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

当在衍生类中被覆盖时, 当应用程序代码或内部进程(如重建版式通过) 调用 ApplyTemplate 时, 就会被引用。 最简单的是, 这意味着在应用程序中显示一个 UI 元素之前, 这种方法就被称为 。 更多信息请参见备注 。

字段

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Defines the 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

Defines the Text DependnecyProperty