ListFormat.ListValue Property

Returns the numeric value of the first paragraph in the range for the specified ListFormat object. For example, the ListValue property applied to the second paragraph in an alphabetic list would return 2.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property ListValue As Integer
    Get
'Usage
Dim instance As ListFormat
Dim value As Integer

value = instance.ListValue
int ListValue { get; }

Property Value

Type: System.Int32

Remarks

Use the ListString property to return a string that represents the list value.

If the ListFormat object applies to a bulleted list, the ListValue property returns 1.

If the ListFormat object applies to an outline-numbered list, the ListValue property returns the numeric value of the first paragraph as it occurs in the sequence of paragraphs at the same level. For example, if the first paragraph for a specified ListFormat object were numbered "A.2," the ListValue would return 2.

This property will not return the value for a LISTNUM field.

See Also

Reference

ListFormat Interface

ListFormat Members

Microsoft.Office.Interop.Word Namespace