该属性返回或设置确定图文框宽度的规则。WdFrameSizeRule,可读写。
WdFrameSizeRule 可以是下列 WdFrameSizeRule 常量之一: |
wdFrameAtLeast 将宽度值设为 Width 属性指定的值或大于该值。 |
wdFrameAuto 根据图文框中项目的宽度设置宽度。 |
wdFrameExact 将宽度值设为 Width 属性指定的固定值。 |
expression.WidthRule
expression 必需。该表达式返回一个 Frame 对象。
本示例将活动文档中最后一个图文框的宽度精确地设为 72 磅(1 英寸)。
If ActiveDocument.Frames.Count >= 1 Then
With ActiveDocument.Frames(ActiveDocument.Frames.Count)
.WidthRule = wdFrameExact
.Width = 72
End With
End If