HeadingSeparator 属性

       

返回或设置索引中字母组(以同样的字母开头的条目)之间的文字。与 INDEX 域中的 \h 开关相对应,WdHeadingSeparator,可读写。

expression.HeadingSeparator

expression   必需。该表达式返回“应用于”列表中的一个对象。

示例

本示例将活动文档的第一个索引的格式设置为单列,并用相应的字母来导引各字母组。

If ActiveDocument.Indexes.Count >= 1 Then
    With ActiveDocument.Indexes(1)
        .HeadingSeparator = wdHeadingSeparatorLetter
        .NumberOfColumns = 1
    End With
End If