Bewerken

Delen via


Frame Interface

Definition

Represents a frame in a selection, range, or document.

public interface class Frame
[System.Runtime.InteropServices.Guid("0002092A-0000-0000-C000-000000000046")]
public interface Frame
type Frame = interface
Public Interface Frame
Attributes

Remarks

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

Use Frames(index), where index is the index number, to return a single Frame object. The index number represents the position of the frame in the selection, range, or document.

Use the Add(Range) method to add a frame around a range.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Borders

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

Creator

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

Height

Returns or sets the height of the specified frame.

HeightRule

Returns or sets the rule for determining the height of the specified frame.

HorizontalDistanceFromText

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

HorizontalPosition

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

LockAnchor

True if the specified frame is locked.

Parent

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

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

RelativeHorizontalPosition

Specifies to what the horizontal position of a frame is relative.

RelativeVerticalPosition

Specifies to what the vertical position of a frame is relative.

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.

VerticalDistanceFromText

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

VerticalPosition

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

Width

Returns or sets the width of the specified object, in points.

WidthRule

Returns or sets the rule used to determine the width of a frame.

Methods

Copy()

Copies the specified object to the Clipboard.

Cut()

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

Delete()

Deletes the specified object.

Select()

Selects the specified object.

Applies to