该属性返回或设置样式区的宽度,以磅为单位。Single 类型,可读写。
expression.StyleAreaWidth
expression 必需。该表达式返回一个 Window 对象。
如果 StyleAreaWidth 属性值大于 0(零),则样式名显示在文本的左侧。在页面视图或 Web 版式视图中不显示样式区。
本示例将活动窗口切换至普通视图,并设置样式区宽度为 1 英寸。
With ActiveDocument.ActiveWindow
.View.Type = wdNormalView
.StyleAreaWidth = InchesToPoints(1)
End With