IHitTestable

StockSharp.Xaml.Charting.Visuals

Defines the base interface for a type which can be hit-tested

Properties

ActualHeight : double

Gets the height of the IHitTestable

ActualWidth : double

Gets the width of the IHitTestable

Methods

GetBoundsRelativeTo(IHitTestable) : Rect

Gets the bounds of the current IHitTestable element relative to another IHitTestable element

relativeTo
IsPointWithinBounds(Point) : bool

Returns true if the Point is within the bounds of the current IHitTestable element

point
The point to test

Returns: true if the Point is within the bounds

TranslatePoint(Point, IHitTestable) : Point

Translates the point relative to the other IHitTestable element

point
The input point relative to this IHitTestable
relativeTo
The other IHitTestable to use when transforming the point

Returns: The transformed Point