清除指定的 Document、List 或 ListFormat 对象中的项目符号或编号。
expression.RemoveNumbers(NumberType)
expression 必需。该表达式返回“应用于”列表中的一个对象。
NumberType 可选,WdNumberType。要清除的编号类型。
可以是下列 WdNumberType 常量之一: |
wdNumberParagraph |
wdNumberListNum |
wdNumberAllNumbers |
默认值为 wdNumberAllNumbers |
对 List 对象应用该方法时,只清除指定列表中的段落编号而忽略其他列表的空白项的编号;对某一区域或文本的 ListFormat 对象应用此方法,则将清除该区域中的所有列表的所有编号。
本示例清除选定内容中所有已编号段落中的项目符号或编号。
Selection.Range.ListFormat.RemoveNumbers
本示例清除选定内容中的 LISTNUM 域。
Selection.Range.ListFormat.RemoveNumbers wdNumberListNum
本示例从头清除活动文档中已编号段落的编号。
ActiveDocument.RemoveNumbers wdNumberParagraph
本示例清除 MyDocument.doc 中第三个列表的项目符号或编号。
If Documents("MyDocument.doc").Lists.Count >= 3 Then
Documents("MyDocument.doc").Lists(3).RemoveNumbers
End If