RemoveTabTableStyleByName

Syntax

bool RemoveTabTableStyleByName(TabSheetId tTabSheet, string styleName)

Parameters

tTabSheet. Table moniker.

styleName. Name of removed style.

Description

The RemoveTabTableStyleByName operation removes style by its name.

Comments

To execute the operation, in the tTabSheet field specify table moniker, and in the styleName field specify name of removed style. The moniker can be based on the moniker of opened object instance, the table of which is worked with, following the rules:

The operation results in the logical True if the style is removed successfully.

Example

Below is the example of removing the style with the specified name. The request contains table moniker and name of removed style. The response contains whether removal was successful.

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">
<RemoveTabTableStyleByName xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1</id>
  </tTabSheet>
  <styleName xmlns="">EAX table style(changed)</styleName>
  </RemoveTabTableStyleByName>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"RemoveTabTableStyleByName" :
{
"tTabSheet" :
{
"id" : "JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1"
},
"styleName" : "EAX table style(changed)"
}
}

JSON response:

{
"RemoveTabTableStyleByNameResult" : "1"
}
public static bool RemoveTabTableStyleByName(string moniker, string sheetKey, string deletedStyleName)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tCopy = new RemoveTabTableStyleByName()
{
tTabSheet = new TabSheetId() { id = moniker + "!Sheets!" + sheetKey },
styleName = deletedStyleName
};
// Remove style
var result = somClient.RemoveTabTableStyleByName(tCopy);
return result;
}

See also:

Table: Operations