ChartAxisLevelLine GetChartAxisLevelLine(LevelLineId tLevelLineId)
tLevelLineId. Moniker for working with chart axis level line.
The GetChartAxisLevelLine operation gets chart axis level line settings.
To execute the operation, in the tLevelLineId field specify level line moniker. Moniker format: Regular report instance moniker!Sheets!sheet key!Objects!chart identifier!axis identifier!LevelLines!level line index. The following axis identifiers are available:
AxisX - for X axis.
AxisY - for Y axis.
The operation results in the obtained level line settings.
Below is the example of getting chart axis level line settings. The request contains moniker for working with a level line. The response contains the obtained settings.
{
"GetChartAxisLevelLine" :
{
"tLevelLineId" :
{
"id" : "IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines!2"
}
}
}
{
"GetChartAxisLevelLineResult" :
{
"i" : "2",
"v" : "3",
"callft" : "0",
"ls" :
{
"clr" : "#FF0000",
"s" : "1",
"w" : "0.5"
},
"lb" :
{
"v" : "1",
"f" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"fc" : "#918F8D",
"mt" : "Reference point"
}
}
}
public static ChartAxisLevelLine GetChartAxisLevelLine(string moniker, string sheetKey, string chartId, string axis, uint lineIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartAxisLevelLine()
{
tLevelLineId = new LevelLineId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + '!' + axis + "!LevelLines!" + lineIndex }
};
// Get chart axis level line settings
var result = somClient.GetChartAxisLevelLine(tGet);
return result;
}
See also: