Partager via


Frame.WidthRule Property (Word)

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

Syntax

expression .WidthRule

expression Required. A variable that represents a Frame object.

Example

This example sets the width of the last frame in the active document to exactly 72 points (1 inch).

If ActiveDocument.Frames.Count >= 1 Then 
 With ActiveDocument.Frames(ActiveDocument.Frames.Count) 
 .WidthRule = wdFrameExact 
 .Width = 72 
 End With 
End If

See Also

Concepts

Frame Object

Frame Object Members