IHitTestable
StockSharp.Xaml.Charting.Visuals
Define a interface base para um tipo que pode ser testado
Propriedades
ActualHeight
public double ActualHeight { get; }
value = iHitTestable.ActualHeight
Obtém a altura do IHitTestable
ActualWidth
public double ActualWidth { get; }
value = iHitTestable.ActualWidth
Obtém a largura do IHitTestable
Métodos
GetBoundsRelativeTo
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = iHitTestable.GetBoundsRelativeTo(relativeTo)
Obtém os limites do elemento IHitTestable em relação a outro elemento IHitTestable @
- relativeTo
IsPointWithinBounds
public bool IsPointWithinBounds(Point point)
result = iHitTestable.IsPointWithinBounds(point)
Retorna true se o Ponto estiver dentro dos limites do elemento IHitTestable atual
- point
- O ponto a testar
Retorna: verdadeiro se o Ponto estiver dentro dos limites
TranslatePoint
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = iHitTestable.TranslatePoint(point, relativeTo)
Traduz o ponto relativo ao outro IHitTestable element
- point
- O ponto de entrada relativo a este IHitTestable
- relativeTo
- O outro IHitTestablea usar ao transformar o ponto
Retorna: O Ponto Transformado