This topic has not yet been rated - Rate this topic

Lists interface

A collection of List objects that represent all the lists in the specified document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
[GuidAttribute("00020993-0000-0000-C000-000000000046")]
public interface Lists : IEnumerable

Use the Lists property to return the Lists collection.

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

When you use a For Each...Next loop to enumerate the Lists collection, the lists in a document are returned in reverse order.

To add a new list to a document, use the ApplyListTemplate method with the ListFormat object for a specified range.

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.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.