I have added a NRectangularCallout to a chart () which can be moved with the mouse - so far it works well:
NRectangularCallout m_RectangularCallout = new NRectangularCallout();
m_RectangularCallout.ArrowLength = new NLength(10, NRelativeUnit.ParentPercentage);
m_RectangularCallout.StrokeStyle.Width = new NLength(1);
m_RectangularCallout.UseAutomaticSize = true;
m_RectangularCallout.Orientation = iLabelPos; // 348; //8;
m_RectangularCallout.Text = oLine.m_sLabel;
// Anchor the callout to data point
NDataPointAnchor anchor = new NDataPointAnchor(line, 1, ContentAlignment.MiddleCenter, StringAlignment.Center);
m_RectangularCallout.Anchor = anchor;
m_RectangularCallout.AlwaysInsideParent = true;
The callout can be moved with the mouse (e.g. to drag it to a different location because it hides some important chart data).
Now I want to store the new position of the callout after the user has dragged it and restore the position of the callout when the data is loaded from external file.
So how can I:
1. Get the position of the callout after it has been dragged by mouse (and may be the callout orientation as well) ?
2. Restore the callout position after it has been created ?
Thanks for your help,