편집

다음을 통해 공유


ListTemplates Interface

Definition

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

public interface class ListTemplates : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020990-0000-0000-C000-000000000046")]
public interface ListTemplates : System.Collections.IEnumerable
type ListTemplates = interface
    interface IEnumerable
Public Interface ListTemplates
Implements IEnumerable
Attributes
Implements

Remarks

Use the ListTemplates property to return the ListTemplates collection.

Use the Add(Object, Object) 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(Object) and Add(Object, Object), 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[Int32] property with the ListGallery object. To reset formatting to the original list format, use the Reset(Int32) 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(Object) method to convert a multiple-level list template to a single-level template.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

Returns an individual object in a collection.

Parent

Returns an object that represents the parent object of the specified object.

Methods

Add(Object, Object)

Returns a ListTemplate object that represents a new list template.

GetEnumerator()

Applies to