ApplyListTemplate Method

See Also         Example         Applies To

Applies a set of list-formatting characteristics to the specified List or ListFormat object.

Syntax 1

expression.ApplyListTemplate(ListTemplate, ContinuePreviousList, DefaultListBehavior)

Syntax 2

expression.ApplyListTemplate(ListTemplate, ContinuePreviousList, ApplyTo, DefaultListBehavior)

expression   Syntax 1: Required. An expression that returns a List object.

Syntax 2: Required. An expression that returns a ListFormat object.

ListTemplate   Required ListTemplate object. The list template to be applied.

ContinuePreviousList   Optional Variant. True to continue the numbering from the previous list; False to start a new list.

ApplyTo   Optional Variant. The portion of the list that the list template is to be applied to. Can be one of the following WdListApplyTo constants: wdListApplyToSelection, wdListApplyToWholeList, or wdListApplyToThisPointForward.

DefaultListBehavior   Optional Variant. Sets a value that specifies whether Microsoft Word uses new Web-oriented formatting for better list display. Can be either of the following constants: wdWord8ListBehavior (use formatting compatible with Microsoft Word 97) or wdWord9ListBehavior (use Web-oriented formatting). For compatibility reasons, the default constant is wdWord8ListBehavior, but in new procedures you should use wdWord9ListBehavior to take advantage of improved Web-oriented formatting with respect to indenting and multilevel lists.