bool ResizeTabObjects(TabSheetId tTabSheet, TabObjectMoveArg tArg)
tTabSheet. Sheet moniker.
tArg. Operation execution parameters.
The ResizeTabObjects operation resizes table objects.
To execute the operation, in the tTabSheet field specify moniker of the sheet that contains objects, and in the tArg field specify object resize parameters. The moniker can be based on the moniker of opened object instance, with which the work is executed.
The operation results in the logical True if the objects were resized successfully.
Below is the example of resizing a chart located on a table sheet. The request contains sheet moniker and chart size to be determined. The response contains whether resize was successful.
{
"ResizeTabObjects" :
{
"tTabSheet" :
{
"id" : "GELCPBJDAHMNFOAEOGANNOOIMCBDPMLEFKAFDIFHOKGGDEFD!M!S!PLBMFNEJDAHMNFOAEKCMNMAJAJPHAFBGEILMEHGGEFPOMHMFJ!Sheets!1"
},
"tArg" :
{
"its" :
{
"it" :
[
{
"id" : "PrxChart1",
"mm" :
{
"lt" :
{
"x" : "70",
"y" : "70"
},
"sz" :
{
"width" : "50",
"height" : "50"
}
}
}
]
}
}
}
}
{
"ResizeTabObjectsResult" : "1"
}
public static bool ResizeTabObjects(string reportMoniker, string sheetKey, string objectId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new ResizeTabObjects()
{
tArg = new TabObjectMoveArg()
{
its = new TabObjectMoveItem[]
{
new TabObjectMoveItem()
{
id = objectId,
mm = new TabObjectCoordsMm()
{
lt = new PointF(){ x = 70, y = 70 },
sz = new SizeF(){ height = 50, width = 50 }
}
}
}
},
tTabSheet = new TabSheetId() { id = reportMoniker + "!Sheets!" + sheetKey}
};
// Change table object size
var result = somClient.ResizeTabObjects(tSet);
return result;
}
See also: