IHitTestable

StockSharp.Xaml.Charting.Visuals

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

Properties

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

Methods

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

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

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

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
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = iHitTestable.TranslatePoint(point, relativeTo)

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