IHitTestable

StockSharp.Xaml.Charting.Visuals

定义可以被点击测试的类型的基础接口

属性

ActualHeight
public double ActualHeight { get; }
value = iHitTestable.ActualHeight

Gets the height of the IHitTestable

ActualWidth
public double ActualWidth { get; }
value = iHitTestable.ActualWidth

Gets the width of the IHitTestable

方法

GetBoundsRelativeTo
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = iHitTestable.GetBoundsRelativeTo(relativeTo)

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

relativeTo
IsPointWithinBounds
public bool IsPointWithinBounds(Point point)
result = iHitTestable.IsPointWithinBounds(point)

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

point
测试点

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

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

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

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

返回值: 变形点