bool RemoveChartCorridor(ChartCorridorsId tCorridors, ChartCorridorRemoveInfo tArg)
tCorridors. Moniker for working with chart corridors.
tArg. Operation execution parameters.
The RemoveChartCorridor operation removes chart corridor.
To execute the operation, in the tCorridors field specify moniker for working with chart corridors, and in the tArg field specify corridor removal parameters. 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 corridor is removed successfully.
Below is the example of chart corridor removal. The request contains moniker for working with corridors and index of removed corridor. The response contains whether the corridor is successfully removed.
{
"RemoveChartCorridor" :
{
"tCorridors" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Corridors"
},
"tArg" :
{
"index" : "1"
}
}
}
{
"RemoveChartCorridorResult" : "1"
}
public static bool RemoveChartCorridor(string chartMoniker, uint corridorIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new RemoveChartCorridor()
{
tCorridors = new ChartCorridorsId
{
id = chartMoniker + "!Corridors"
},
tArg = new ChartCorridorRemoveInfo()
{
index = corridorIndex
}
};
// Remove chart corridor
var result = somClient.RemoveChartCorridor(tSet);
return result;
}
See also: