bool DisplayChartCorridors(ChartCorridorsId tCorridors, ChartCorridorsDisplayInfo tArg)
tCorridors. Moniker for working with chart corridors.
tArg. Settings for displaying corridors in chart legend.
The DisplayChartCorridors operation changes settings for displaying corridors in chart legend.
To execute the operation, in the tCorridors field specify moniker for working with chart corridors, and in the tArg field specify corridor settings to be applied. The moniker can be created based on the chart moniker specified in the GetChart, SetChart, GetChartSeries operations. The moniker is created in the following format: 'Chart moniker'!Corridors.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing settings for displaying corridors in chart legend. The request contains moniker for working with corridors and indicator of whether corridors are displayed in chart legend. The response contains whether the setting is successfully changed.
{
"DisplayChartCorridors" :
{
"tCorridors" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Corridors"
},
"tArg" :
{
"dl" : "true"
}
}
}
{
"DisplayChartCorridorsResult" : "1"
}
public static bool DisplayChartCorridors(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new DisplayChartCorridors()
{
tCorridors = new ChartCorridorsId
{
id = chartMoniker + "!Corridors"
},
tArg = new ChartCorridorsDisplayInfo()
{
dl = true
}
};
// Set up displaying of corridors in legend
var result = somClient.DisplayChartCorridors(tSet);
return result;
}
See also: