Share via


Rectangles Collection

Multiple objects
Rectangles
Rectangle
Multiple objects

A collection of Rectangle objects in a page that represent portions of text and graphics. Use the Rectangles collection and related objects and properties for programmatically defining page layout in a document.

Using the Rectangles Collection

Use the Rectangles property to return a Rectangles collection. The following example returns the Rectangles collection for the first page in the active document.

Dim objRectangles As Rectangles

Set objRectangles = ActiveDocument.ActiveWindow _
    .Panes(1).Pages(1).Rectangles

Properties | Application Property | Count Property | Creator Property | Parent Property

Methods | Item Method

Parent Objects | Line | Page

Child Objects | Lines | Range