RemoveChartAxisLevelLine

Syntax

bool RemoveChartAxisLevelLine(LevelLinesId tLevelLinesId, ChartAxisLevelLineInd tArg)

Parameters

tLevelLinesId. Moniker for working with chart axis level lines.

tArg. Parameters for removing level line.

Description

The RemoveChartAxisLevelLine operation removes chart axis level line.

Comments

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:

The operation results in the logical True if the level line was removed successfully.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveChartAxisLevelLine xmlns="http://www.fsight.ru/PP.SOM.Som">
<tLevelLinesId xmlns="">
  <id>IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines</id>
  </tLevelLinesId>
<tArg xmlns="">
  <index>2</index>
  </tArg>
  </RemoveChartAxisLevelLine>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <RemoveChartAxisLevelLineResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</RemoveChartAxisLevelLineResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"RemoveChartAxisLevelLine" :
{
"tLevelLinesId" :
{
"id" : "IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines"
},
"tArg" :
{
"index" : "2"
}
}
}

JSON response:

{
"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:

Chart