MindFusion.Charting Programmer's Guide

PieChart.HitTestPie Method

See Also
 





Returns the PiePiece at the specified position.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public PiePiece HitTestPie (
    int x,
    int y
)

Visual Basic  Copy Code

Public Function HitTestPie ( _
    x As Integer, _
    y As Integer _
) As PiePiece

JavaScript  Copy Code

function HitTestPie (x, y)

 Parameters

x
the X - coordinate of the mouse
y
the Y - coordinate of the mouse

 Return Value

The PiePiece found at the position specified by x and y; otherwise null.

 Remarks

Use this method when hit-testing pie charts. The result can be null, so always check.

 See Also