| ||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Class SharpPlot Properties SharpPlot Methods SharpPlot Structures SharpPlot Enumerations SharpLeaf Reference SharpLeaf Class SharpLeaf Properties SharpLeaf Methods Table Class Table Properties Table Methods SharpLeaf Structures FontType Structure ParagraphStyle Structure BoxStyle Structure SharpLeaf Enumerations DocumentLayout Classes DocumentLayout Class PageLayout Class PageElement Abstract Class Frame : PageElement Class TextBlock : PageElement Class ImageBlock : PageElement Class Box : PageElement Class Rule : PageElement Class Common Reference Document Class VectorMath Class DbUtil Class Download Release Notes Licensing |
SharpPlot Reference > PageMap Class > FindInfo Method PageMap.FindInfo MethodFind the details of any standard chart object(s) given the chart id and any ScriptTarget. public HotspotInfo[] FindInfo( string chartid, ScriptTarget objid ); ExampleHotspotInfo[] ylabs = pm.FindInfo("Bar1",ScriptTarget.YLabels); foreach (HotspotInfo spot in ylabs) System.Console.WriteLine(spot.ToString());
A typical result would be Chart=Bar1, Series=YLabels, Item=1, Type=ScriptTarget, Locator=29.5 45.6 33.5 59.2 Chart=Bar1, Series=YLabels, Item=2, Type=ScriptTarget, Locator=29.5 73.8 33.5 87.4 Chart=Bar1, Series=YLabels, Item=3, Type=ScriptTarget, Locator= .... which might be echoed to the console for debugging use. You could use this array to implement your own hotspot searching, for example to highlight drop-targets in a ‘slice-and-dice’ application which allowed the user to re-position the datacube by dropping placeholders on the chart axis labels. See also ...Active charts in GUI Applications | HotspotInfo Struct | PageMap.PageMap Members |