Share via


List Interface

Represents a single list format that's been applied to specified paragraphs in a document.

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

Syntax

'Declaration
<GuidAttribute("00020992-0000-0000-C000-000000000046")> _
Public Interface List
'Usage
Dim instance As List
[GuidAttribute("00020992-0000-0000-C000-000000000046")]
public interface List

Remarks

The List object is a member of the Lists collection.

Use Lists(index), where index is the index number, to return a single List object.

To return all the paragraphs that have list formatting, use the ListParagraphs property. To return them as a range, use the Range property.

To apply a different list format to an existing list, use the ApplyListTemplate method with the List object. To add a new list to a document, use the ApplyListTemplate method with the ListFormat object for a specified range.

Use the CanContinuePreviousList method to determine whether you can continue the list formatting from a list that was previously applied to the document.

Use the CountNumberedItems method to return the number of items in a numbered or bulleted list, including LISTNUM fields.

To determine whether a list contains more than one list template, use the SingleListTemplate property.

You can manipulate the individual List objects within a document, but for more precise control you should work with the ListFormat object.

Picture-bulleted lists are not included in the Lists collection and cannot be manipulated using the List object.

See Also

Reference

List Members

Microsoft.Office.Interop.Word Namespace