bool RemTabTableStyle(string mon)
mon. Moniker for working with formatting styles of the selected area.
The RemoveTabTableStyle operation removes the styles applied to the selected area.
To execute the operation, in the mon field specify moniker for working with styles. The moniker is specified in one of the following formats:
Regular report instance moniker!Sheets!Sheet key!TableStyles - for working with sheet styles.
Regular report instance moniker!Sheets!Sheet key!absolute address!TableStyles - for working with cell range styles. Absolute address can be specified in various formats that are allowed for cells, for example: A5, A5:D10, R5C3, C:C, 43:43.
The operation results in the logical True if styles were deleted successfully.
Below is the example of deleting the styles applied for a cell range. The request contains the moniker for working with styles of a specific cell range. The response contains whether the styles are deleted successfully.
{
"RemoveTabTableStyle" :
{
"mon" : "JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1!A0:D5!TableStyles"
}
}
{
"RemoveTabTableStyleResult" : "1"
}
public static bool RemoveTabTableStyle(string moniker, string sheetKey, string address)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new RemoveTabTableStyle()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + address + "!TableStyles"
};
// Delete styles
var result = somClient.RemoveTabTableStyle(tDel);
return result;
}
See also: