DeleteStyleSheetItem

Syntax

bool DeleteStyleSheetItem(string mon)

Parameters

mon. Moniker of single style in styles table.

Description

The DeleteStyleSheetItem operation deletes a styles from styles table.

Comments

To execute the operation, in the mon field specify moniker of opened styles table instance with the !<style number> postfix. The moniker can be obtained on executing the OpenStyleSheet operation.

The operation results in the logical True if a style was deleted successfully.

Example

Below is the example of deleting a style from styles table. The request contains style moniker. The response contains whether a style was 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">
<DeleteStyleSheetItem xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE!3</mon>
  </DeleteStyleSheetItem>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DeleteStyleSheetItem" :
{
"mon" : "CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE!3"
}
}

JSON response:

{
"DeleteStyleSheetItemResult" : "1"
}
public static bool DeleteStyleSheetItem(string moniker, ulong styleNumber)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DeleteStyleSheetItem()
{
mon = moniker + '!' + styleNumber
};
// Delete style from styles table
var result = somClient.DeleteStyleSheetItem(tDel);
return result;
}

See also:

Working with Styles Table