TabObjectsCopyResult TabObjectsCut(TabSheetId tTabSheet, TabObjectsCopyArg tArg)
tTabSheet. Table moniker.
tArg. Parameters for cutting table objects.
The TabObjectsCut operation cuts table objects.
The operation cuts table objects to the clipboard to further paste them to the other position in the current or other table. To execute the operation, in the tTabSheet field specify table moniker, and in the tArg.ids field specify array of identifiers of objects to be cut. The moniker can be based on the moniker of opened object instance, which table is worked with.
The operation results in the byte stream of cut objects. To paste, use the TabObjectsPaste operation.
Below is the example of cutting the image located on the regular report sheet. The request contains regular report sheet moniker and identifier of the image to be cut. The response contains the byte stream containing the cut image.
{
"TabObjectsCut" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"ids" :
{
"it" : "PrxPicture"
}
}
}
}
{
"TabObjectsCutResult" :
{
"data" : "egAAAAIAAAABAAAAAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAAiXED7wgJCwB5FQShcT0EFAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAABAAAABQBAAACAgAAAAIBAAAAAgIAAAACCgAAAAL\/\/\/\/\/CgECAQAAAAXvAAAAAgAAAO8AAAA0AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAEdJRjg5YRAAEACDAAAAAAD\/\/\/\/7+\/v4+Pjp6enc3Nzb29vQ0NDIyMj\/\/\/8AAAAAAAAAAAAAAAAAAAAAAAAh\/wtORVRTQ0FQRTIuMAMBAQAAIfkEAQAACQAsAAAAABAAEAAACFUAEwgcSLCgwYEEDh40gMCAQoIGDgw44PBhRAEBBFBUeDGAR40VIR7A6PHjxoEMESAoULKAyoYHEZRE8FCgTI80a94MkPPhzp4Kf9ZMIFTnS6BDDQYEADsAAAAAAAAAAAIAAAAwADoAAAAAAA=="
}
}
public static TabObjectsCopyResult CutTabObjects(string moniker, string[] objects)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabObjectsCut()
{
tTabSheet = new TabSheetId() { id = moniker },
tArg = new TabObjectsCopyArg()
{
ids = objects
}
};
// Cut table objects
var result = somClient.TabObjectsCut(tTab);
return result;
}
See also: