SharpPlot Reference > PageMap Class > GetHotspotInfo Method

PageMap.GetHotspotInfo Method

Recover hotspot details given hotspot handle.

public HotspotInfo GetHotspotInfo(
    int hotspot
);

Example

int hix = pm.FindHotspot(250,300);   // Main heading
HotspotInfo hi = pm.GetHotspotInfo(hix);

System.Console.WriteLine("Heading is found at " + hi.ToString());

This might be required if the application wanted to ‘illuminate targets’ as the mouse was tracked over a chart. For example you could circle a data-point if the mouse was over its hotzone, or draw a bright edge over the potentially-selected bar on a barchart.

See also ...

Active charts in GUI Applications | HotspotInfo Struct | PageMap.PageMap Members | PageMap.FindPoints Method


Send comments on this topic
© Dyalog Ltd 2016