ListFormat.ApplyListTemplate Method
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
void ApplyListTemplate( [In] ListTemplate ListTemplate, [In, Optional] ref object ContinuePreviousList, [In, Optional] ref object ApplyTo, [In, Optional] ref object DefaultListBehavior );
public void ApplyListTemplate( /*in*/ListTemplate ListTemplate, /*in*/System.Object ContinuePreviousList, /*in*/System.Object ApplyTo, /*in*/System.Object DefaultListBehavior );
function ApplyListTemplate(
ListTemplate : ListTemplate,
ContinuePreviousList : Object,
ApplyTo : Object,
DefaultListBehavior : Object
);
Parameters
- ListTemplate
Required ListTemplate object. The list template to be applied.
- ContinuePreviousList
Optional Object. True to continue the numbering from the previous list; False to start a new list.
- ApplyTo
Optional Object. 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 Object. 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.
Reference
ListFormat InterfaceMicrosoft.Office.Interop.Word Namespace