Partager via


Frame Members (Word)

Represents a frame. The Frame object is a member of the Frames collection. The Frames collection includes all frames in a selection, range, or document.

Methods

Name

Description

Copy

Copies the specified frame to the Clipboard.

Cut

Removes the specified frame from the document and places it on the Clipboard.

Delete

Deletes the specified frame.

Select

Selects the specified object.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Borders

Returns a Borders collection that represents all the borders for the specified frame.

Creator

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

Height

Returns or sets a Single that represents the height of the specified frame. Read/write .

HeightRule

Returns or sets a WdFrameSizeRule that represents the rule for determining the height of the specified frame. Read/write.

HorizontalDistanceFromText

Returns or sets the horizontal distance between a frame and the surrounding text, in points. Read/write Single.

HorizontalPosition

Returns or sets the horizontal distance between the edge of the frame and the item specified by the RelativeHorizontalPosition property. Read/write Single.

LockAnchor

True if the specified frame is locked. Read/write Boolean.

Parent

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

Range

Returns a Range object that represents the portion of a document that's contained within the frame.

RelativeHorizontalPosition

Specifies the relative horizontal position of a frame. Read/write WdRelativeHorizontalPosition.

RelativeVerticalPosition

Specifies the relative vertical position of a frame. Read/write WdRelativeVerticalPosition.

Shading

Returns a Shading object that refers to the shading formatting for the specified object.

TextWrap

True if document text wraps around the specified frame. Read/write Boolean.

VerticalDistanceFromText

Returns or sets the vertical distance (in points) between a frame and the surrounding text. Read/write Single.

VerticalPosition

Returns or sets the vertical distance between the edge of the frame and the item specified by the RelativeVerticalPosition property. Read/write Single.

Width

Returns or sets the width of the frame, in points. Read/write Long.

WidthRule

Returns or sets the rule used to determine the width of a frame. Read/write WdFrameSizeRule.