bool TabDeleteColumns(TabSheetId tTabSheet, TabInsertDeleteArg tArg)
tTabSheet. Moniker of the table, in which columns are deleted.
tArg. Parameters for deleting columns.
The TabDeleteColumns operation deletes table columns.
To execute the operation, in the tTabSheet field specify table moniker and in the tArg field specify parameters for adding columns. 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 columns are deleted successfully.
Below is the example of deleting columns on regular report page. The request contains page moniker and parameters for deleting columns. The response contains whether deletion was successful.
{
"TabDeleteColumns" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"index" : "5",
"count" : "3",
"type" : "1"
}
}
}
{
"TabDeleteColumnsResult" : "1"
}
public static bool DeleteColumns(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabDeleteColumns()
{
tArg = new TabInsertDeleteArg()
{
index = 5,
count = 3,
type = 1
},
tTabSheet = new TabSheetId() { id = moniker }
};
// Delete columns
var result = somClient.TabDeleteColumns(tTab);
return result;
}
See also: