LoadDecoration(Xml: IXmlDomElement);
LoadDecoration(Xml: Prognoz.Platform.Interop.MsXml2.IXmlDomElement);
Xml. XML document element.
The LoadDecoration method loads custom style from an XML document.
This example assumes that there is the Chart object of the IChart type.
Sub UserProc;
Var
Chart: IChart;
doc: IXmlDomDocument;
res: boolean;
element: IXmlDomElement;
Begin
doc := New DOMDocument40.Create;
res := doc.load("c:\Temp\test.xml");
element := doc.documentElement;
Chart.LoadDecoration(element);
End Sub UserProc;
After executing the example custom style is used for the chart.
See also: