bool DeleteStyleSheetItem(string mon)
mon. Moniker of single style in styles table.
The DeleteStyleSheetItem operation deletes a styles from styles table.
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.
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.
{
"DeleteStyleSheetItem" :
{
"mon" : "CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE!3"
}
}
{
"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: