control.GetOInfoXY(nX, nY, oInfo)

PurposeRetrieves informations about any pixel position of a chart.
Parameter
nX Long

The X pixel position on the chart, whose informations shall be retrieved.

nY Long

The Y pixel position on the chart, whose informations shall be retrieved.

oInfo Object

When successful, this object of the clInfo class will hold all informations available for this pixel position.

Return valueIf successful 0, in case of an error, an element of the RMCError enumeration.
Remarks

This method allows you to retrieve the same informations you get when a mouse event on the specified X/Y location happens.
NOTE: Use this method instead of the undocumented method GetInfoXY(), which may be does not work correctly. Don't create oInfo, just Dim it, it gets created inside this method and you should delete it after you've retrieved all informations.

Example ' Get oInfo for a specific X/Y position:
Dim oInfo as RMChart.clInfo
x = RMChartX1.GetOInfoXY(105, 75, oInfo)

.
.
.

' After retrieving all informations, delete the object:
Set oInfo = Nothing