Return the enumerated value indicating the topmost displayed region at the specified coordinates.

Namespace:  C1.Win.C1Chart
Assembly:  C1.Win.C1Chart.2 (in C1.Win.C1Chart.2.dll)

Syntax

C#
public ChartRegionEnum ChartRegionFromCoord(
	int XCoord,
	int YCoord
)
Visual Basic
Public Function ChartRegionFromCoord ( _
	XCoord As Integer, _
	YCoord As Integer _
) As ChartRegionEnum

Parameters

XCoord
Type: System..::..Int32
x coordinate
YCoord
Type: System..::..Int32
y coordinate

Return Value

Chart region

Remarks

Each chart element drawn on the face of the control, including the Chart itself, the Header, the Footer, the Legend, the ChartArea and the PlotArea form a region which is identified by the enumerated value returned by this method. The region under the mouse cursor can be identified by passing the mouse coordinates to this method.

See Also