OriginPro 8.0 SR6 WinXP SP3 How can I use the data selected by "Regional Data Selector" in some Graph in my code of X-Function or Origin C? What type of input variable should I use in XF? Or how can I access to worksheet and indexes of stat and end of selected ranges?
You can use the GetDataMarkers method of the DataPlot class which will fill two vectors with the start and end indices of each selected range of a plot. Your XF could use a DataPlot input and get the range vectors using the data plot index as one example.
In LabTalk, the mks X-Function can be used to get datasets with the stored indices.