bool SetChartCorridor(ChartCorridorId tCorridor, SetChartCorridorArg tArg)
tCorridor. Chart corridor moniker.
tArg. Operation execution parameters.
The SetChartCorridor operation changes chart corridor settings.
To execute the operation, in the tCorridor field specify chart corridor moniker, and in the tArg field specify settings to be determined. 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!'corridor key'.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing chart corridor settings. The request contains corridor moniker and settings to be determined. The response contains whether changes were applied successfully.
{
"SetChartCorridor" :
{
"tCorridor" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Corridors!1"
},
"tArg" :
{
"meta" :
{
"s1" : "3",
"s2" : "4",
"gf" : "false",
"clr" : "#00FFFF",
"tp" : "75"
}
}
}
}
{
"SetChartCorridorResult" : "1"
}
public static bool SetChartCorridor(string chartMoniker, string corridorKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetChartCorridor()
{
tCorridor = new ChartCorridorId
{
id = chartMoniker + "!Corridors!" + corridorKey
},
tArg = new SetChartCorridorArg()
{
meta = new ChartCorridor()
{
s1 = 3,
s2 = 4,
gf = false,
clr = "#00FFFF", //Cyan
tp = 75
}
}
};
// Create a chart corridor
var result = somClient.SetChartCorridor(tSet);
return result;
}
See also: