Word) (ListFormat.ListValue 属性

在区域中查找指定的 ListFormat 对象返回的第一个段落的数字值。 只读 Long

语法

expressionListValue

表达 返回 ListFormat 对象的表达式。

备注

使用 ListString 属性返回 string 类型的值,该值代表列表值。

如果 ListFormat 对象应用于项目符号列表,则 ListValue 属性返回 1。

如果 ListFormat 对象应用一个多级符号列表, ListValue 属性返回数值的第一段相同级别的段落的顺序出现。 例如,如果指定的 ListFormat 对象的第一个段落的编号"A.2", ListValue 属性将返回 2。

该属性不会返回 LISTNUM 域的值。

示例

本示例显示选定内容中第一段的编号及代表该值的字符串。

v = Selection.Range.ListFormat.ListValue 
lstring = Selection.Range.ListFormat.ListString 
MsgBox "List value " & v _ 
 & " is represented by the string " & lstring

另请参阅

ListFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。