bool RemoveTabTableStyleByName(TabSheetId tTabSheet, string styleName)
tTabSheet. Table moniker.
styleName. Name of removed style.
The RemoveTabTableStyleByName operation removes style by its name.
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:
'Express report instance moniker'!Tab. Express report table (if express report has one sheet).
'Express report instance moniker'!Sheets!'Sheet key'!Tab. table of specified express report sheet (if express report has several sheets).
'Workbook instance moniker'!Tab. Workbook table (if workbook has one sheet).
'Workbook instance moniker'!Sheets!'Sheet key'!Tab. Table of specified workbook sheet (if workbook has several sheets).
'Workbook instance moniker'!CorrTab. Table with correlation matrix.
'Workbook instance moniker'!CoeffTab. Table with equation coefficients.
'Workbook instance moniker'!WeightsTab. Table with weight matrix.
'Regular report instance moniker'!Sheet key. Table of specified regular report sheet.
The operation results in the logical True if the style is removed successfully.
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.
{
"RemoveTabTableStyleByName" :
{
"tTabSheet" :
{
"id" : "JMHNJCPPENOAGOAEKKAIOMBCNHKFGLBECJGOILNNKEBNHDNH!M!S!POMEOEHPPENOAGOAEHHAFJNMHPFBDKBJEDIHOKONCJJDDJEHC!Sheets!1"
},
"styleName" : "EAX table style(changed)"
}
}
{
"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: