bool RemoveChartAxisLevelLine(LevelLinesId tLevelLinesId, ChartAxisLevelLineInd tArg)
tLevelLinesId. Moniker for working with chart axis level lines.
tArg. Parameters for removing level line.
The RemoveChartAxisLevelLine operation removes chart axis level line.
To execute the operation, in the tLevelLinesId field specify moniker for working with level lines, and in the tArg field specify removal parameters. Moniker format: Regular report instance moniker!Sheets!sheet key!Objects!chart identifier!axis identifier!LevelLines. The following axis identifiers are available:
AxisX - for X axis.
AxisY - for Y axis.
The operation results in the logical True if the level line was removed successfully.
Below is the example of removing the chart axis level line. The request contains moniker for working with level lines and index of the removed level line. The response contains whether removal was successful.
{
"RemoveChartAxisLevelLine" :
{
"tLevelLinesId" :
{
"id" : "IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines"
},
"tArg" :
{
"index" : "2"
}
}
}
{
"RemoveChartAxisLevelLineResult" : "1"
}
public static bool RemoveChartAxisLevelLine(string moniker, string sheetKey, string chartId, string axis, uint lineIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tRem = new RemoveChartAxisLevelLine()
{
tArg = new ChartAxisLevelLineInd()
{
index = lineIndex
},
tLevelLinesId = new LevelLinesId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + '!' + axis + "!LevelLines"}
};
// Remove chart axis level line
var result = somClient.RemoveChartAxisLevelLine(tRem);
return result;
}
See also: