편집

다음을 통해 공유


ListTemplate Interface

Definition

Represents a single list template that includes all the formatting that defines a list.

public interface class ListTemplate
[System.Runtime.InteropServices.Guid("0002098F-0000-0000-C000-000000000046")]
public interface ListTemplate
type ListTemplate = interface
Public Interface ListTemplate
Attributes

Remarks

The ListTemplate object is a member of the ListTemplates collection. Each of the seven formats (excluding None) found on each of the three tabs in the Bullets and Numbering dialog box corresponds to a list template object. These predefined list templates can be accessed from the three ListGallery objects in the ListGalleries collection. Documents and templates can also contain collections of list templates.

Use ListTemplates(index), where index is a number from 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).

Use the Add(Object, Object) method to add a list template to the collection of list templates in a document or template.

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.

Creator

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

ListLevels

Returns a ListLevels collection that represents all the levels for the specified ListTemplate.

Name

Returns or sets the name of the specified object.

OutlineNumbered

True if the specified ListTemplate object is outline numbered.

Parent

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

Methods

Convert(Object)

Converts a multiple-level list to a single-level list, or vice versa.

Applies to