ListTemplates Interface 

A collection of ListTemplate objects that represent the seven predefined list formats on each tab in the Bullets and Numbering dialog box.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class istTemplatesImplementation
    Implements ListTemplates
End Class
Dim istTemplatesImplementation1 As New istTemplatesImplementation()

Syntax

Public Interface ListTemplates
    Inherits IEnumerable
public interface ListTemplates : IEnumerable
public interface class ListTemplates : public IEnumerable
public interface ListTemplates implements IEnumerable
public interface ListTemplates implements IEnumerable

Remarks

Use the ListTemplates property to return the ListTemplates collection.

Use the Add method to add a list template to the collection in the specified document or template.

Use ListTemplates(index), where index is a number 1 through 7, to return a single list template from a list gallery.

Note

Some properties and methods— Convert and Add, for example— won't work with list templates that are accessed from a list gallery. You can modify these list templates, but you cannot change their list gallery type (wdBulletGallery, wdNumberGallery, or wdOutlineNumberGallery).

To see whether the specified list template contains the formatting built into Microsoft Word, use the Modified property with the ListGallery object. To reset formatting to the original list format, use the Reset method for the ListGallery object.

After you have returned a ListTemplate object, use ListLevels(index), where index is a number from 1 through 9, to return a single ListLevel object. With a ListLevel object, you have access to all the formatting properties for the specified list level, such as Alignment, Font, NumberFormat, NumberPosition, NumberStyle, and TrailingCharacter.

Use the Convert method to convert a multiple-level list template to a single-level template.

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

ListTemplates Members