LoadFromXml(Xml: String);
Xml. The string for loading XML markup.
The LoadFromXml method loads XML markup from a string variable.
Executing this example requires a form, a button named Button1 located on this form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as the data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
chart: IChart;
Begin
chart := ChartBox2.Source.GetChart;
chart.LoadFromXml(ChartBox1.Source.GetChart.SaveToXml);
End Sub Button1OnClick;
Clicking Button1 loads settings from the chart displayed in ChartBox1.
See also: