LineAnnotationWithLabelsBase

StockSharp.Xaml.Charting.Visuals.Annotations

为 HorizontalLineAnnotation, VerticalLineAnnotation 提供基础类

继承自: LineAnnotation

构造函数

LineAnnotationWithLabelsBase
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()

初始化了 & ##LineAnnotationWithLabelsBase+# 类的新实例 。

属性

AnnotationLabels
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value

获取或设置注释标签集

DefaultLabelValue
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue

获取或设置标签将绑定到的值

DefaultTextFormatting
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting

获得默认文本格式值

FormattedLabel
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel

获取格式化标签值

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value

获取或设置默认标签的放置

LabelTextFormatting
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value

获得或设置适用于所有注释标签的格式字符串

LabelValue
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value

获取或设置默认标签的值

ShowLabel
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value

获取或设置值, 显示是否显示默认标签

方法

AddLabel
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()

Adds new label to AnnotationLabels

返回值: 已创建的标签

ApplyPlacement
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)

使用 LabelPlacement enum 值定位 AnnotationLabel

label
要放置的标签
placement
放置参数
Attach
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)

请求在内部为当前实例附加一个 AnnotationLabel

label
The AnnotationLabel to attach
AttachLabels
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)

将 & ###AnnotationLabel### 的集合添加到 &#LineAnnotationWithLabelsBase#%

labels
要添加的标签的收藏
Detach
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)

将% AnnotationLabel 调出当前% LineAnnotationWithLabelsBase 。

label
要拆分的标签
DetachLabels
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)

删除 & ###AnnotationLabel ##的集合到 & #LineAnnotationWithLabelsBase %####

labels
要删除的标签的收藏
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()

选择时获得光标用于注释

GetUsedAxis
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()

返回轴,当前注释显示数据值

InvalidateLabel
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)

无效的注释标签

annotationLabel
标签为无效
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.IsPointWithinBounds(point)

如果点位于当前 IHitTestable 元素的边界内, 返回真值

point
测试点

返回值: 如果点在界限内, 则为真

MakeInvisible
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()

隐藏当前 LineAnnotationWithLabelsBase 实例

MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)

隐藏当前 LineAnnotationWithLabelsBase 实例

OnApplyTemplate
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()

当在衍生类中被推翻时,每当应用程序代码或内部进程称为ApplyTemplate时,都会被引用.

OnAttached
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()

标签附在父表层时调用

OnAxisAlignmentChanged
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)

如果您想要被通知 AxisAlignment 已更改, 则使用虚拟方法覆盖

axis
oldAlignment
OnXAxesCollectionChanged
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)

如果您想要被通知父 XAxes 已更改, 则使用虚拟方法覆盖

OnXAxisIdChanged
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()

如果您想要被通知 XAxisId 已更改, 则使用虚拟方法覆盖

OnYAxesCollectionChanged
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)

如果您想要被通知母 YAxes 已更改, 则使用虚拟方法覆盖

OnYAxisIdChanged
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()

如果您想要被通知 YAxisId 已更改, 则使用虚拟方法覆盖

PlaceAxisLabel
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)

将合适的轴线放在ModifierAxisCanvas上,位置位置。

TryPlaceAxisLabels
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)

尝试将所有注释标签放在 ModifierAxisCanvas 上, 以合适的轴位置 。

字段

AnnotationLabelsProperty
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty

定义 & #% AnnotationLabels\% 属性

DefaultLabelValueProperty
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty

定义 & #% DefaultLabelValue\% 属性

DefaultTextFormattingProperty
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty

定义 & #% DefaultTextFormatting\% 属性

FormattedLabelProperty
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty

定义 & #% FormattedLabel\% 属性

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty

定义 & #% LabelPlacement\% 属性

LabelTextFormattingProperty
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty

定义 & #% LabelTextFormatting\% 属性

LabelValueProperty
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty

定义 & #% LabelValue\% 属性

ShowLabelProperty
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty

定义 & #% ShowLabel\% 属性