Result GetChartCorridor(ChartCorridorId tCorridor)
tCorridor. Moniker for working with a chart corridor.
The GetChartCorridor operation gets 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 obtained corridor settings.
Below is the example of getting corridor settings. The request contains corridor moniker. The response contains the obtained settings.
{
"GetChartCorridor" :
{
"tCorridor" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Corridors!1"
}
}
}
{
"GetChartCorridorResult" :
{
"s1" : "2",
"s2" : "3",
"gf" : "1",
"clr" : "#EF9859",
"tp" : "50",
"name" : "Germany - France",
"dl" : "0"
}
}
public static ChartCorridor GetChartCorridor(string chartMoniker, string corridorKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartCorridor()
{
tCorridor = new ChartCorridorId
{
id = chartMoniker + "!Corridors!" + corridorKey
}
};
// Get chart corridor settings
var result = somClient.GetChartCorridor(tGet);
return result;
}
See also: