全部显示

Leader 属性

       

返回或设置指定 TabStop 对象的前导字符。WdTabLeader,可读写。

expression.Leader

expression   必需。该表达式返回一个 TabStop 对象。

示例

本示例将活动文档各段落中所有制表位的前导字符都更改为短划线。

Dim tsLoop As TabStop

For each tsLoop in ActiveDocument.Paragraphs.TabStops
    If tsLoop.Leader <> wdTabLeaderSpaces Then
        tsLoop.Leader = wdTabLeaderDashes
    End If
Next tsLoop