Line.Rectangles Property (Word)
Returns a Rectangles collection that represents a portion of text or graphics in a page in a document.
Syntax
expression .Rectangles
expression Required. A variable that represents a Line object.
Remarks
Use the Rectangles collection and related objects and properties for programmatically defining page layout in a document. Rectangles correspond to portions of text or graphics on a page in a document.
Example
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