bool DeleteTabNamedRegion(NamedRegionsId nrMon, TabRegionIdentArg Arg)
nrMon. Moniker for working with named ranges.
Arg. Operation execution parameters.
The DeleteTabNamedRegion operation deletes named range from a regular report sheet.
To execute the operation, in the nrMon field specify regular report instance moniker with the !Sheets!Sheet key!NamedRegions postfix, and in the Arg field specify named range deletion parameters. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the logical True if the named range is deleted successfully.
Below is the example of named range deletion. The request contains moniker for working with named ranges and name of deleted range. The response contains whether removal was successful.
{
"DeleteTabNamedRegion" :
{
"nrMon" :
{
"id" : "ILBNJNHKDBCAGOAEGGMCAJHIOKJPOKMEOIOADBDOFONILPAG!M!S!PAJBBFBIKDBCAGOAEJOAGHLNCNALCNCJEOLBLLFIDBFHIGLPO!Sheets!1!NamedRegions"
},
"Arg" :
{
"name" : "Totals"
}
}
}
{
"DeleteTabNamedRegionResult" : "1"
}
public static bool DeleteTabNamedRegion(string moniker, string deletedRegionName)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DeleteTabNamedRegion()
{
nrMon = new NamedRegionsId() { id = moniker + "!Sheets!1!NamedRegions" },
Arg = new TabRegionIdentArg()
{
name = deletedRegionName
}
};
// Delete named range
var result = somClient.DeleteTabNamedRegion(tDel);
return result;
}
See also: