ListValue 属性

       

返回指定的 ListFormat 对象的区域中第一段的编号。例如,将 ListValue 属性应用于字母顺序列表的第二段,则返回值 2。Long 类型,只读。

expression.ListValue

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

说明

使用 ListString 属性可返回代表列表值的字符串。

如果 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