SaveXAMLToFile(FileName: String; Rect: IGxRectF; [Scale: IGxRectF = Null]);
FileName. The file path, name and type
Rect. The chart coordinates and size (mm).
Scale. The chart scale. The default chart scale is1.0.
The SaveXAMLToFile method loads a chart to a XAML file (*.xaml).
This example assumes that there is the Chart object of the IChart type.
Sub UserProc;
Var
Chart: IChart;
Rect: IGxRectF;
Begin
Rect := Chart.ChartArea.Rectangle;
Chart.SaveXAMLToFile("c:\Temp\Scene.xaml", Rect);
End Sub UserProc;
After executing the example the chart is saved to Scene.xaml.
See also: