AnnotationBase

StockSharp.Xaml.Charting.Visuals.Annotations

为图上的注释提供基础类

继承自: ApiElementBase

实现: IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable, ISuspendable

构造函数

AnnotationBase
protected AnnotationBase()
annotationBase = AnnotationBase()

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

属性

AnnotationCanvas
public AnnotationCanvas AnnotationCanvas { get; set; }
value = annotationBase.AnnotationCanvas
annotationBase.AnnotationCanvas = value

获取或设置 AnnotationCanvas 以放置注释。默认为 AboveChart

AnnotationOverlaySurface
protected IAnnotationCanvas AnnotationOverlaySurface { get; }
value = annotationBase.AnnotationOverlaySurface

将画布覆盖在父的%% UltrachartSurface%% 上

AnnotationUnderlaySurface
protected IAnnotationCanvas AnnotationUnderlaySurface { get; }
value = annotationBase.AnnotationUnderlaySurface

获取 Series 下的画布到父 UltrachartSurface

CanEditText
public bool CanEditText { get; set; }
value = annotationBase.CanEditText
annotationBase.CanEditText = value

获取或设定文本是否可在此 AnnotationBase 上编辑。 仅由文本或标签说明支持

CoordinateMode
public AnnotationCoordinateMode CoordinateMode { get; set; }
value = annotationBase.CoordinateMode
annotationBase.CoordinateMode = value

获取或设置 AnnotationCoordinateMode 用于放置注释 。 E.g 默认绝对值需要 X1, Y1 坐标为数据值 。 相对值要求 X1, Y1 是从 0.0 到 1.0 的双值 。

DragDirections
public XyDirection DragDirections { get; set; }
value = annotationBase.DragDirections
annotationBase.DragDirections = value

使用鼠标拖动注释时限制拖放方向, X 方向、 Y 方向或 XyDirection 方向。 请参见 XyDirection 选项

IsAttached
public override bool IsAttached { get; set; }
value = annotationBase.IsAttached
annotationBase.IsAttached = value

获取或设定此元素是否与父 UltrachartSurface 连接

IsEditable
public bool IsEditable { get; set; }
value = annotationBase.IsEditable
annotationBase.IsEditable = value

获取或设定当前注释是否可编辑。 当可编辑时, 用户可以单击以选择并交互注释

IsHidden
public bool IsHidden { get; set; }
value = annotationBase.IsHidden
annotationBase.IsHidden = value

获取或设置值, 表示当前注释是否被隐藏调用所隐藏

IsResizable
public bool IsResizable { get; protected set; }
value = annotationBase.IsResizable
annotationBase.IsResizable = value

获得值, 表示当前实例是否可重塑

IsSelected
public bool IsSelected { get; set; }
value = annotationBase.IsSelected
annotationBase.IsSelected = value

获取或设定当前注释是否被选中。 选中时, Adorner 会被置于注释上, 以便用户可以进行动态调整大小并拖动 。

IsSuspended
public bool IsSuspended { get; }
value = annotationBase.IsSuspended

获得一个值,显示当前是否暂停目标更新

ResizeDirections
public XyDirection ResizeDirections { get; set; }
value = annotationBase.ResizeDirections
annotationBase.ResizeDirections = value

在使用鼠标重排注时限制重排大小方向, e.g 在 X-方向, Y-方向或 XyDirection 中。 请参见 XyDirection 选项

ResizingGripsStyle
public Style ResizingGripsStyle { get; set; }
value = annotationBase.ResizingGripsStyle
annotationBase.ResizingGripsStyle = value

获取或设置用于重排大小的抓取符的样式,当注释被选中时出现。

X1
public IComparable X1 { get; set; }
value = annotationBase.X1
annotationBase.X1 = value

获取或设置注释的 X1 坐标。 对于绝对值, 这必须是 X 轴上的数据值, 如 X DateTime + , 双倍值 , 或 x NumericAxis + 的整数指数 。 对于相对值, 这必须是 0.0 和 1.0 之间的双值, 其中 0.0 是 XAx 的左侧, 1.0 是 极右 。

X2
public IComparable X2 { get; set; }
value = annotationBase.X2
annotationBase.X2 = value

获取或设置注释的 X2 坐标。 对于绝对值, 这必须是 X 轴上的数据值, 如 X DateTime+++++ DateTimeAxis++, 双倍的 X NumericAxis+++ 或整数指数 Q CategoryDateTimeAxis+++。 对于相对值, 这必须是 0.0 和 1.0 之间的双值, 其中 0.0 是 XAxis 的左侧, 而 1.0 是 的极右值 。

XAxis
public override IAxis XAxis { get; }
value = annotationBase.XAxis

获取当前注释必须包含的 XAxis

XAxisId
public string XAxisId { get; set; }
value = annotationBase.XAxisId
annotationBase.XAxisId = value

获取或设置此注释所对照的 X 轴的ID

Y1
public IComparable Y1 { get; set; }
value = annotationBase.Y1
annotationBase.Y1 = value

获取或设置注释的 Y1 坐标。 对于绝对值, 这必须是 Y 轴上的数据值, 如 NumericAxis 的双倍值 相对值, 这必须是 0.0 和 1.0 之间的双倍值, 其中 0.0 为 YA 轴上方, 1.0 为下方

Y2
public IComparable Y2 { get; set; }
value = annotationBase.Y2
annotationBase.Y2 = value

获取或设置注释的 Y2 坐标。 对于绝对值, 这必须是 Y 轴上的数据值, 如 NumericAxis 的双倍值, 相对值, 这必须是 0.0 和 1.0 之间的双倍值, 其中 0.0 为 YA 轴上方, 1.0 为下方

YAxis
public override IAxis YAxis { get; }
value = annotationBase.YAxis

获得当前注释必须包含的 YAAxis

YAxisId
public string YAxisId { get; set; }
value = annotationBase.YAxisId
annotationBase.YAxisId = value

获取或设置此注释所对照的 Y 轴的ID

方法

AddAdorners
protected virtual void AddAdorners(Canvas adornerLayer)
annotationBase.AddAdorners(adornerLayer)

当在衍生的类中被覆盖时, 在 AnnotationBase 上放置相应的涂鸦

adornerLayer
装饰层
AttachInteractionHandlersTo
protected virtual void AttachInteractionHandlersTo(FrameworkElement source)
annotationBase.AttachInteractionHandlersTo(source)

将处理器附在通过对象的特定事件上

source
鼠标事件源
DecrementSuspend
public void DecrementSuspend()
annotationBase.DecrementSuspend()

每次处置目标悬浮器时, IUpdateSuspender 都会被调用。 当最终目标悬浮器被处理后, ResumeUpdates 被调用 。

DetachInteractionHandlersFrom
protected virtual void DetachInteractionHandlersFrom(FrameworkElement source)
annotationBase.DetachInteractionHandlersFrom(source)

当在衍生类中被调用时, 解析鼠标中可能先前附在 AnnotationBase 上的任何事件

source
Drag
public void Drag(double hOffset, double vOffset)
annotationBase.Drag(hOffset, vOffset)

提高 & #% DragDelta\%%% 事件, 当拖动操作正在进行时, 并在注释中每次更新 X1 Y1 X2 Y2 点时, 都会调用

EndDrag
public void EndDrag()
annotationBase.EndDrag()

提升 & #% DragEnded\%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

FocusInputTextArea
protected virtual void FocusInputTextArea()
annotationBase.FocusInputTextArea()

聚焦输入文本区域。仅适用于文本和标签说明

FromCoordinate
protected virtual IComparable FromCoordinate(double coord, IAxis axis)
result = annotationBase.FromCoordinate(coord, axis)

将像素坐标转换为数据值

coord
相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
axis
计算数据值的轴

返回值: 数据值

FromCoordinates
protected virtual IComparable[] FromCoordinates(double xCoord, double yCoord)
result = annotationBase.FromCoordinates(xCoord, yCoord)

将像素坐标转换为数据值

xCoord
X坐标
yCoord
Y坐标

返回值: 数据值

FromCoordinates
protected virtual IComparable[] FromCoordinates(Point coords)
result = annotationBase.FromCoordinates(coords)

将像素坐标转换为数据值

coords
X, Y坐标

返回值: 数据值

FromRelativeCoordinate
protected virtual IComparable FromRelativeCoordinate(double coord, IAxis axis)
result = annotationBase.FromRelativeCoordinate(coord, axis)

将相对坐标(e.g. 0.0 到 1.0) 转换为数据值

coord
相对坐标,为0.0至1.0之间,用于取景口的极点.
axis
计算数据值的轴

返回值: 数据值

GetAdornerLayer
protected Canvas GetAdornerLayer()
result = annotationBase.GetAdornerLayer()

让Adorner Canvas 来放置注释

GetBasePoints
public Point[] GetBasePoints()
result = annotationBase.GetBasePoints()

这种方法被 AnnotationResizeAdorner 内部使用。 获取调高点位置

GetBasePoints
protected virtual Point[] GetBasePoints(AnnotationCoordinates coordinates)
result = annotationBase.GetBasePoints(coordinates)

这种方法被 AnnotationResizeAdorner 内部使用。 获取调高点位置

coordinates
先前计算出在屏幕像素中的AnnotationCoordinates.

返回值: 屏幕像素中点数列表来表示 Adorner 角

GetBoundsRelativeTo
public virtual Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = annotationBase.GetBoundsRelativeTo(relativeTo)

获取当前 & ###IHitTestable### 元素相对于另一个 & ##IHitTestable#% 元素的界限

relativeTo
GetCanvas
protected IAnnotationCanvas GetCanvas(AnnotationCanvas annotationCanvas)
result = annotationBase.GetCanvas(annotationCanvas)

获得这个注释的 Canvas 例子

annotationCanvas
AnnotationCanvas enumeration enumeration enumeration

返回值: 画布实例

GetCoordinates
protected AnnotationCoordinates GetCoordinates(IAnnotationCanvas canvas, ICoordinateCalculator<double> xCalc, ICoordinateCalculator<double> yCalc)
result = annotationBase.GetCoordinates(canvas, xCalc, yCalc)

获得包含像素坐标的 AnnotationCoordinates 结构来将注释放置或更新到当前渲染通道中

canvas
画布上会放注解
xCalc
当前 XAxis ICoordinateCalculator 执行数据到像素转换
yCalc
当前 YAxis ICoordinateCalculator 执行数据到像素转换

返回值: 包含像素坐标的 AnnotationCoordinates= struct

GetPropertiesFromIndex
protected virtual void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
annotationBase.GetPropertiesFromIndex(index, x, y)

内部用于为给定的索引在注释周围获取X1Property,Y1Property,X1Property,Y2Property对. e.g 索引 0返回X1,Y1 索引 1返回X2,Y1 索引 2返回X2,Y2 索引 3返回X1,Y2

index
指数
x
X 协调依赖性属性, 要么是 X1 财产, 要么是 X2 财产
y
Y 协调依赖财产, 要么是 Y1 财产, 要么是 Y2 财产
GetSchema
public XmlSchema GetSchema()
result = annotationBase.GetSchema()

返回一个 XmlSchema, 描述由 WriteXml 方法所生成、 由 ReadXml 方法所消耗的物体的 XML 表示

GetSelectedCursor
protected abstract Cursor GetSelectedCursor()
result = annotationBase.GetSelectedCursor()

选择时获得光标用于注释

GetUsedAdorners``1
protected IEnumerable<T> GetUsedAdorners<T>(Canvas adornerLayer)
result = annotationBase.GetUsedAdorners(adornerLayer)

获得目前用于注释的 Adorners 的集合, 以备有注释 {} {} AdornerLayer}}\\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 注释

adornerLayer
彩绘层画布

返回值: T 类型相匹配的涂鸦列表

Hide
public void Hide()
annotationBase.Hide()

隐藏注释, 从母 AdornerLayerCanvas 中删除一个多彩标记, 并设置可视性以折叠

HideAdornerMarkers
protected void HideAdornerMarkers()
annotationBase.HideAdornerMarkers()

呼叫 Clear 隐藏装饰标记

IsCoordinateValid
protected bool IsCoordinateValid(double coord, double canvasMeasurement)
result = annotationBase.IsCoordinateValid(coord, canvasMeasurement)

确定坐标是否适用于布局,% e.g+% 大于零,小于

coord
坐标
canvasMeasurement
此轴上的画布尺寸 。

返回值: 如果坐标有效,则为真;否则,为假。

IsInBounds
protected virtual bool IsInBounds(AnnotationCoordinates coordinates, IAnnotationCanvas canvas)
result = annotationBase.IsInBounds(coordinates, canvas)

执行简单的矩形边框检查,以查看通过的X1, X2, Y1, Y2坐标是否在 Canvas 延伸范围内

coordinates
The normalised AnnotationCoordinates
canvas
检查注释是否在限值范围内的画布

返回值: 正确, 如果在界限内

IsPointWithinBounds
public virtual bool IsPointWithinBounds(Point point)
result = annotationBase.IsPointWithinBounds(point)

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

point
测试点

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

MakeInvisible
protected virtual void MakeInvisible()
annotationBase.MakeInvisible()

内部使用布局系统调用, 当注释超出表面的界限时

MakeVisible
protected virtual void MakeVisible(AnnotationCoordinates coordinates)
annotationBase.MakeVisible(coordinates)

内部通过布局系统调用, 当注释进入地表的界限时

MoveAnnotation
public void MoveAnnotation(double horizOffset, double vertOffset)
annotationBase.MoveAnnotation(horizOffset, vertOffset)

这种方法由 AnnotationDragAdorner 内部使用。程序上将注释以 X,Y 相冲移 。

horizOffset
水平偏移以像素形式移动
vertOffset
以 平方厘米移动的垂直相抵
MoveAnnotationTo
protected virtual ValueTuple<double, double> MoveAnnotationTo(AnnotationCoordinates coordinates, double horizOffset, double vertOffset)
result = annotationBase.MoveAnnotationTo(coordinates, horizOffset, vertOffset)

将注释移动到特定的横向和纵向偏移

coordinates
初标相相.
horizOffset
横向偏移。
vertOffset
垂直数。
OnAnnotationLoaded
protected virtual void OnAnnotationLoaded(object sender, RoutedEventArgs e)
annotationBase.OnAnnotationLoaded(sender, e)

被装入事件一发生, 就会立即呼叫 。

sender
e
OnAnnotationMouseDown
protected virtual void OnAnnotationMouseDown(object sender, MouseButtonEventArgs e)
annotationBase.OnAnnotationMouseDown(sender, e)

包含处理鼠标下行事件的交互逻辑

sender
e
OnAnnotationMouseMove
protected virtual void OnAnnotationMouseMove(object sender, MouseEventArgs e)
annotationBase.OnAnnotationMouseMove(sender, e)

包含处理鼠标移动事件的交互逻辑

sender
e
OnAnnotationMouseUp
protected virtual void OnAnnotationMouseUp(object sender, MouseButtonEventArgs e)
annotationBase.OnAnnotationMouseUp(sender, e)

包含处理鼠标事件的互动逻辑

sender
e
OnAnnotationPositionChanged
protected static void OnAnnotationPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
AnnotationBase.OnAnnotationPositionChanged(d, e)

用于刷新属性和位置注释的已更改处理器

OnAttached
public override void OnAttached()
annotationBase.OnAttached()

标签附在父表层时调用

OnAxisAlignmentChanged
protected virtual void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
annotationBase.OnAxisAlignmentChanged(axis, oldAlignment)

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

axis
oldAlignment
OnDetached
public override void OnDetached()
annotationBase.OnDetached()

通知从母表面脱离前立即发出

OnRenderablePropertyChanged
protected static void OnRenderablePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
AnnotationBase.OnRenderablePropertyChanged(d, e)

DependencyProperty 更改处理器, 用于刷新属性更改的注释

d
The DependencyObject sender.
e
包含事件数据的 DependencyPropertyChangedEventArgs 实例 。
OnXAxesCollectionChanged
protected virtual void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationBase.OnXAxesCollectionChanged(sender, args)

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

OnXAxisIdChanged
protected virtual void OnXAxisIdChanged()
annotationBase.OnXAxisIdChanged()

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

OnYAxesCollectionChanged
protected virtual void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
annotationBase.OnYAxesCollectionChanged(sender, args)

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

OnYAxisIdChanged
protected virtual void OnYAxisIdChanged()
annotationBase.OnYAxisIdChanged()

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

PlaceAnnotation
protected virtual void PlaceAnnotation(AnnotationCoordinates coordinates)
annotationBase.PlaceAnnotation(coordinates)

取代衍生类处理给定 AnnotationCoordinates 注释的具体位置

coordinates
The normalised AnnotationCoordinates
RaiseAnnotationDragEnded
internal void RaiseAnnotationDragEnded(bool isPrimaryDrag, bool isResize)
annotationBase.RaiseAnnotationDragEnded(isPrimaryDrag, isResize)

Initiates the DragEnded event

RaiseAnnotationDragging
internal void RaiseAnnotationDragging(double hOffset, double vOffset, bool isPrimaryDrag, bool isResize)
annotationBase.RaiseAnnotationDragging(hOffset, vOffset, isPrimaryDrag, isResize)

Initiates the DragDelta event

RaiseAnnotationDragStarted
internal void RaiseAnnotationDragStarted(bool isPrimaryDrag, bool isResize)
annotationBase.RaiseAnnotationDragStarted(isPrimaryDrag, isResize)

Initiates the DragStarted event

ReadXml
public virtual void ReadXml(XmlReader reader)
annotationBase.ReadXml(reader)

从它的XML 代表生成 AnnotationBase 。

reader
Refresh
public bool Refresh()
result = annotationBase.Refresh()

刷新母 UltrachartSurface 上的注释位置, 而不导致图表的完全重绘

RemoveAdorners
protected virtual void RemoveAdorners(Canvas adornerLayer)
annotationBase.RemoveAdorners(adornerLayer)

从 AnnotationBase 从中去除所有调色器

adornerLayer
装饰层
RemoveFocusInputTextArea
protected virtual void RemoveFocusInputTextArea()
annotationBase.RemoveFocusInputTextArea()

删除输入文本区域的重点。 仅适用于文本和标签注释

ResumeUpdates
public void ResumeUpdates(IUpdateSuspender updateSuspender)
annotationBase.ResumeUpdates(updateSuspender)

续续出新.

updateSuspender
更新暂停器.
SetBasePoint
protected virtual void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
annotationBase.SetBasePoint(newPoint, index, xAxis, yAxis)

内部调用以调用像素为单位的像素指向 X1,Y1,X2,Y2值。取像素为点 ()和基点 ,设置X,Y数据值.

newPoint
像素点
index
基点指数,其中0, 1, 2, 3 指注释的四个角
yAxis
当前的 Y 轴
xAxis
当前的 X 轴
SetBasePoint
public void SetBasePoint(Point newPoint, int index)
annotationBase.SetBasePoint(newPoint, index)

AnnotationResizeAdorner内部使用这种方法。程序上设置了调色点位置

newPoint
index
Show
public void Show()
annotationBase.Show()

显示隐藏呼叫所隐藏的注释

StartDrag
public void StartDrag(bool isPrimaryDrag)
annotationBase.StartDrag(isPrimaryDrag)

启动拖动操作时, 将 DragStarted 事件调用

SuspendUpdates
public IUpdateSuspender SuspendUpdates()
result = annotationBase.SuspendUpdates()

悬停绘制目标上的最新消息, 直至返回对象处理完毕, 此时将发出最后的绘图调用

返回值: 可支配更新悬浮器

ToCoordinate
protected virtual double ToCoordinate(IComparable dataValue, double canvasMeasurement, ICoordinateCalculator<double> coordCalc, XyDirection direction)
result = annotationBase.ToCoordinate(dataValue, canvasMeasurement, coordCalc, direction)

将数据瓦等坐标转换为像素坐标

dataValue
要转换的数据值
canvasMeasurement
X 或 Y 方向的画布大小
coordCalc
The current ICoordinateCalculator
direction
X 或 Y 转换方向
ToCoordinate
protected double ToCoordinate(IComparable dataValue, IAxis axis)
result = annotationBase.ToCoordinate(dataValue, axis)

将数据值转换为像素坐标

dataValue
转换的数据值
axis
坐标计算时的轴

返回值: 坐标以像素表示

ToCoordinates
protected virtual Point ToCoordinates(IComparable xDataValue, IComparable yDataValue, IAnnotationCanvas canvas, ICoordinateCalculator<double> xCoordCalc, ICoordinateCalculator<double> yCoordCalc)
result = annotationBase.ToCoordinates(xDataValue, yDataValue, canvas, xCoordCalc, yCoordCalc)

将数据值转换为像素坐标

xDataValue
X 数据值, e.g. 值为 X1 或 X2
yDataValue
Y 数据值, e.g 值为 Y1 或 Y2
canvas
AnnotationCanvas
xCoordCalc
当前 X X ICoordinateCalculator 有效的当前渲染传入
yCoordCalc
当前的 Y ICoordinateCalculator 在当前渲染传出时有效

返回值: 像素坐标

TranslatePoint
public virtual Point TranslatePoint(Point point, IHitTestable relativeTo)
result = annotationBase.TranslatePoint(point, relativeTo)

翻译相对于其他 * * IHitTestable * * 元素的点

point
相对于此 IHitTestable 的输入点
relativeTo
另一台IHitTestable在转换点时使用

返回值: 变形点

TrySelectAnnotation
internal bool TrySelectAnnotation()
result = annotationBase.TrySelectAnnotation()

尝试选择注释。 如果操作成功返回 True

返回值: 如果手术成功,那就是真的

Update
public virtual void Update(ICoordinateCalculator<double> xCoordinateCalculator, ICoordinateCalculator<double> yCoordinateCalculator)
annotationBase.Update(xCoordinateCalculator, yCoordinateCalculator)

更新坐标计算器,并刷新母机UltrachartSurface上的注释位置

xCoordinateCalculator
轴心国 ICoordinateCalculator
yCoordinateCalculator
The YAxis ICoordinateCalculator
UpdatePosition
public void UpdatePosition(Point point1, Point point2)
annotationBase.UpdatePosition(point1, point2)

通过设置 X1,Y1,X2,Y2和X,Y像素坐标并用,从像素坐标输入中更新拖动或调整操作时注释的位置和值

point1
第一个输入像素坐标
point2
第二个输入像素坐标
WriteXml
public virtual void WriteXml(XmlWriter writer)
annotationBase.WriteXml(writer)

Converts AnnotationBase into its XML representation.

writer

事件

DragDelta
public event EventHandler<AnnotationDragDeltaEventArgs> DragDelta
annotationBase.DragDelta += handler

拖动或移动当前 AnnotationBase 时的外观

DragEnded
public event EventHandler<AnnotationDragEventArgs> DragEnded
annotationBase.DragEnded += handler

拖放或移动操作结束时的意外

DragStarted
public event EventHandler<AnnotationDragEventArgs> DragStarted
annotationBase.DragStarted += handler

拖放或移动操作开始时的外观

IsHiddenChanged
public event EventHandler IsHiddenChanged
annotationBase.IsHiddenChanged += handler

当 & #% IsHidden 属性被更改时的外观

MouseMiddleButtonDown
public event MouseButtonEventHandler MouseMiddleButtonDown
annotationBase.MouseMiddleButtonDown += handler

当鼠标指针在UIElement上方时按下鼠标中键时, 会发生任何意外 。

MouseMiddleButtonUp
public event MouseButtonEventHandler MouseMiddleButtonUp
annotationBase.MouseMiddleButtonUp += handler

当鼠标指针在 UIELENM 上空时释放鼠标中键时, 会发生任何意外。 然而, 只有当呼叫者按处理过的%% MouseRightButtonDown%%%% 事件标记时, 才会提高此事件; 请参见备注 。

Selected
public event EventHandler Selected
annotationBase.Selected += handler

选择 INotement 时的外观 。

Unselected
public event EventHandler Unselected
annotationBase.Unselected += handler

当注释变成未选中时, 会出现什么情况 。

字段

AnnotationCanvasProperty
public static readonly DependencyProperty AnnotationCanvasProperty
value = AnnotationBase.AnnotationCanvasProperty

定义 AnnotationCanvas DependencyProperty 定义

AnnotationRoot
protected FrameworkElement AnnotationRoot
value = annotationBase.AnnotationRoot

将在 Canvas 上显示的注释的根元素

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationBase.CanEditTextProperty

定义 CanEditText DependencyProperty 定义

CoordinateModeProperty
public static readonly DependencyProperty CoordinateModeProperty
value = AnnotationBase.CoordinateModeProperty

定义 CoordinateMode DependencyProperty 定义

DragDirectionsProperty
public static readonly DependencyProperty DragDirectionsProperty
value = AnnotationBase.DragDirectionsProperty

定义 DragDirections DependencyProperty 定义

IsEditableProperty
public static readonly DependencyProperty IsEditableProperty
value = AnnotationBase.IsEditableProperty

定义 IsEditable DependencyProperty 定义

IsHiddenProperty
public static readonly DependencyProperty IsHiddenProperty
value = AnnotationBase.IsHiddenProperty

Defines the IsHidden DependencyProperty

IsSelectedProperty
public static readonly DependencyProperty IsSelectedProperty
value = AnnotationBase.IsSelectedProperty

定义 IsSelected DependencyProperty 定义

ResizeDirectionsProperty
public static readonly DependencyProperty ResizeDirectionsProperty
value = AnnotationBase.ResizeDirectionsProperty

定义 ResizeDirection DependencyProperty 定义

ResizingGripsStyleProperty
public static readonly DependencyProperty ResizingGripsStyleProperty
value = AnnotationBase.ResizingGripsStyleProperty

定义 ResizingGripsStyle DependencyProperty 定义

X1Property
public static readonly DependencyProperty X1Property
value = AnnotationBase.X1Property

Defines the X1 DependencyProperty

X2Property
public static readonly DependencyProperty X2Property
value = AnnotationBase.X2Property

Defines the X2 DependencyProperty

XAxisIdProperty
public static readonly DependencyProperty XAxisIdProperty
value = AnnotationBase.XAxisIdProperty

Defines the YAxisId DependencyProperty

Y1Property
public static readonly DependencyProperty Y1Property
value = AnnotationBase.Y1Property

Defines the Y1 DependencyProperty

Y2Property
public static readonly DependencyProperty Y2Property
value = AnnotationBase.Y2Property

Defines the Y2 DependencyProperty

YAxisIdProperty
public static readonly DependencyProperty YAxisIdProperty
value = AnnotationBase.YAxisIdProperty

Defines the YAxisId DependencyProperty