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)

Usage

Public Class istImplementation
    Implements List
End Class
Dim istImplementation1 As New istImplementation()

Syntax

Public Interface List
public interface List
public interface class List
public interface List
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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

List Members