IChart.LoadDecoration

Fore Syntax

LoadDecoration(Xml: IXmlDomElement);

Fore.NET Syntax

LoadDecoration(Xml: Prognoz.Platform.Interop.MsXml2.IXmlDomElement);

Parameters

Xml. XML document element.

Description

The LoadDecoration method loads custom style from an XML document.

Fore Example

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:

IChart | Example of changing series color style