返回或设置指定的水平线的长度,以窗口宽度的百分比表示。Single 类型,可读写。
expression.PercentWidth
expression 必需。该表达式返回一个 HorizontalLineFormat 对象。
设置本属性会使 WidthType 属性设置为 wdHorizontalLinePercentWidth。
本示例添加一条水平线并将其长度设置为窗口宽度的 50%。
Selection.InlineShapes.AddHorizontalLineStandard
ActiveDocument.InlineShapes(1) _
.HorizontalLineFormat.PercentWidth = 50