Page 15 entries
pages and page setup
Entries in this section
- page.SizeWidthPage width, read/write, in doc.Unit. In the code = 1490/25.4 sets it to 1490 mm.
- page.SizeHeightPage height, same rules. Note that CDR's Y axis points up, so Top is a larger number than
- page.SetSize(w, h)Sets width and height in one call, one COM round trip cheaper than assigning them separate
- page.OrientationLandscape or portrait.
- page.ActiveLayerThe active layer of this page. Every Create* method lives on a Layer, so get the layer bef
- page.LayersThe layer collection: page.Layers.Count and .Item(i). This is how you build a stack of bac
- page.ShapesAll top-level shapes on the page. To reach the ones inside groups and containers you have
- page.Activate()Switches to this page. It moves the UI too, which is slow — skip it in batch code where yo
- page.Delete()Deletes this page. The indexes of later pages shift down, so deleting in reverse order is
- page.MoveTo(index)Moves this page to position index. Use it to reorder pages.
- page.Next() / page.Previous()The next and previous page objects, for walking through a document.
- page.NamePage name, for orientation.
- page.BleedBleed settings (for print work).
- page.FindShapes(query, type, recursive)Page-level search. Behaves exactly like Layer.FindShapes.
- page.Guides / page.GridThis page's guides and grid.
Getting StartedConnection & InitApplicationDocumentPageLayer & ShapesGeometry & TransformGroup / Order / BooleanShape AppearanceTextTextRangeFillOutlinePowerClipFountain FillPattern / Texture FillTransparency & BlendEffectsColorCurve & NodeBitmapFind & TraverseUnits & ConversionImport / ExportEnumerationsObject DataAlign / DistributeLayer AdvancedView & PerformanceEventsRecipesPitfalls