RemoveTabTableStyle

Syntax

bool RemTabTableStyle(string mon)

Parameters

mon. Moniker for working with formatting styles of the selected area.

Description

The RemoveTabTableStyle operation removes the styles applied to the selected area.

Comments

To execute the operation, in the mon field specify moniker for working with styles. The moniker is specified in one of the following formats:

The operation results in the logical True if styles were deleted successfully.

Example

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.

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">
<RemoveTabTableStyle xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1!A0:D5!TableStyles</mon>
  </RemoveTabTableStyle>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <RemoveTabTableStyleResult 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</RemoveTabTableStyleResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"RemoveTabTableStyle" :
{
"mon" : "JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1!A0:D5!TableStyles"
}
}

JSON response:

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

Table: Operations