LineAnnotationWithLabelsBase
为 HorizontalLineAnnotation, VerticalLineAnnotation 提供基础类
继承自: LineAnnotation
构造函数
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()
初始化了 & ##LineAnnotationWithLabelsBase+# 类的新实例 。
属性
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value
获取或设置注释标签集
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue
获取或设置标签将绑定到的值
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting
获得默认文本格式值
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel
获取格式化标签值
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value
获取或设置默认标签的放置
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value
获得或设置适用于所有注释标签的格式字符串
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value
获取或设置默认标签的值
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value
获取或设置值, 显示是否显示默认标签
方法
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()
Adds new label to AnnotationLabels
返回值: 已创建的标签
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)
使用 LabelPlacement enum 值定位 AnnotationLabel
- label
- 要放置的标签
- placement
- 放置参数
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)
请求在内部为当前实例附加一个 AnnotationLabel
- label
- The AnnotationLabel to attach
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)
将 & ###AnnotationLabel### 的集合添加到 &#LineAnnotationWithLabelsBase#%
- labels
- 要添加的标签的收藏
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)
将% AnnotationLabel 调出当前% LineAnnotationWithLabelsBase 。
- label
- 要拆分的标签
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)
删除 & ###AnnotationLabel ##的集合到 & #LineAnnotationWithLabelsBase %####
- labels
- 要删除的标签的收藏
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()
选择时获得光标用于注释
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()
返回轴,当前注释显示数据值
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)
无效的注释标签
- annotationLabel
- 标签为无效
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()
隐藏当前 LineAnnotationWithLabelsBase 实例
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)
隐藏当前 LineAnnotationWithLabelsBase 实例
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()
当在衍生类中被推翻时,每当应用程序代码或内部进程称为ApplyTemplate时,都会被引用.
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)
如果您想要被通知 AxisAlignment 已更改, 则使用虚拟方法覆盖
- axis
- oldAlignment
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)
如果您想要被通知父 XAxes 已更改, 则使用虚拟方法覆盖
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()
如果您想要被通知 XAxisId 已更改, 则使用虚拟方法覆盖
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)
如果您想要被通知母 YAxes 已更改, 则使用虚拟方法覆盖
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()
如果您想要被通知 YAxisId 已更改, 则使用虚拟方法覆盖
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)
将合适的轴线放在ModifierAxisCanvas上,位置位置。
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)
尝试将所有注释标签放在 ModifierAxisCanvas 上, 以合适的轴位置 。
字段
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty
定义 & #% AnnotationLabels\% 属性
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty
定义 & #% DefaultLabelValue\% 属性
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty
定义 & #% DefaultTextFormatting\% 属性
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty
定义 & #% FormattedLabel\% 属性
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty
定义 & #% LabelPlacement\% 属性
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty
定义 & #% LabelTextFormatting\% 属性
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty
定义 & #% LabelValue\% 属性
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty
定义 & #% ShowLabel\% 属性