TextAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
定义文本注释,该注释可用于在母的 UltrachartSurface 上放置只读标签或已读文本框
构造函数
TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()
初始化了 & ##TextAnnotation+# 类的新实例 。
属性
CornerRadius
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value
获取或设置 TextAnnotation 的 CornerRadius
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
Gets or sets the 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
Defines the Text DependencyProperty
TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty
定义 TextStretch DependencyProperty 定义