ListFormat.ApplyListTemplate(ListTemplate, Object, Object, Object) 方法

定义

将一组列表格式特征应用于指定的 ListFormat 对象。

public void ApplyListTemplate (Microsoft.Office.Interop.Word.ListTemplate ListTemplate, ref object ContinuePreviousList, ref object ApplyTo, ref object DefaultListBehavior);
abstract member ApplyListTemplate : Microsoft.Office.Interop.Word.ListTemplate * obj * obj * obj -> unit
Public Sub ApplyListTemplate (ListTemplate As ListTemplate, Optional ByRef ContinuePreviousList As Object, Optional ByRef ApplyTo As Object, Optional ByRef DefaultListBehavior As Object)

参数

ListTemplate
ListTemplate

必需的 ListTemplate 对象。 要应用的列表模板。

ContinuePreviousList
Object

可选 对象如此 继续编排页码从前面的列表; 以启动一个新的列表。

ApplyTo
Object

可选 对象。 要应用于列表模板的列表部分。 可以是以下 WdListApplyTo 常量之一: wdListApplyToSelectionwdListApplyToWholeListwdListApplyToThisPointForward

DefaultListBehavior
Object

可选 对象。 设置一个值,指定是否 Microsoft Word 使用新的面向 Web 的格式更好的列表中显示。 可以是下列常量之一: wdWord8ListBehavior (使用与 Microsoft Word 97 兼容格式) 或 wdWord9ListBehavior (使用面向 Web 的格式)。 出于兼容性原因,默认常量 wdWord8ListBehavior ,但在新的过程,您应该使用 wdWord9ListBehavior 利用改进的面向 Web 的格式相对于缩进和多级列表中。

适用于