Rectangle Members (Word)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a portion of text or a graphic in a page. Use the Rectangle object and related methods and properties for programmatically defining page layout in a document.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Height

Returns a Long that represents the height of a rectangle, in pixels.

Left

Returns a Long that represents the number of pixels from the left edge of the page to the left edge of a rectangle.

Lines

Returns a Lines collection that represents the lines in a specified portion of text in a page.

Parent

Returns an Object that represents the parent object of the specified Rectangle object.

Range

Returns a Range object that represents the portion of a document that is contained within a rectangle.

RectangleType

Returns a WdRectangleType constant that represents the type for the specified rectangle.

Top

Returns a Long that represents the number of pixels from the top of the page to the top of a rectangle.

Width

Returns or sets a Long that represents the width, in points, of a rectangle. Read/write Long.