bool TabRangeDelete(string mon, TabRangeShiftArg tArg)
mon. Moniker for working with table cell range.
tArg. Parameters for shifting rows/columns on deleting cell range.
The TabRangeDelete operation deletes cell range with shifting of other table elements.
The operation shifts table rows and columns by deleting the corresponding number of rows/columns in the range area passed in the moniker. To execute the operation, in the mon field specify moniker of regular report instance with the !Sheets!sheet key!range address postfix. The operation results in the logical True if cell merge was canceled successfully.
Below is the example of deleting the range on the regular report sheet with shifting rows up. The request contains moniker for working with range. The response contains whether the operation is executed successfully.
{
"TabRangeDelete" :
{
"mon" : "S1!M!S!P1!Sheets!1!A25:B30",
"tArg" :
{
"shift" : "4"
}
}
}
{
"TabRangeDeleteResult" : "1"
}
public static bool DeleteRange(string moniker, string sheetKey, string address)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabRangeDelete()
{
tArg = new TabRangeShiftArg()
{
shift = 4
},
mon = moniker + "!Sheets!" + sheetKey + '!' + address
};
// Delete range
var result = somClient.TabRangeDelete(tTab);
return result;
}
See also: