8.0

Table Of Contents
Example, Object
Model
Creating a new Box: You can add a new box of a specified type to an existing
spread in a QuarkXPress project at the specified position using the following code
snippet with the Box object.
Spread spread = new Spread();
Box box = new Box();
box.name = "textbox1";
Geometry geometry = new Geometry();
Position position = new Position();
position.top = "110";
position.left = "89";
position.bottom = "220";
position.right = "300";
geometry.position = position;
geometry.shape = "SH_RECT";
geometry.page = "1";
geometry.layer = "Default";
box.geometry = geometry;
box.boxType = "CT_TEXT";
box.operation = "CREATE";
spread.box = new Box[]{box};
While creating a box, position attributes need to be specified.
Box is linked to Spread, Spread to Layout, which is further linked with
ModifierRequestContents
An existing box can be deleted by providing the ID name for a box and the
operation attribute as “DELETE”
Related topics:
About XML modify
Modifying box properties and content
Deleting boxes
Modifying picture properties
Modifying text attributes
Page 123