NextParagraphStyle 属性(Word)Style.NextParagraphStyle property (Word)

返回或设置自动应用于在格式设置为指定样式的段落之后插入的新段落的样式。Returns or sets the style to be applied automatically to a new paragraph that is inserted after a paragraph formatted with the specified style. 读/写 VariantRead/write Variant.


expressionexpression. NextParagraphStyle

_表达式_一个返回 "Style" 对象的表达式。expression An expression that returns a 'Style' object.


您可以使用样式的本地名称(一个整数或 WdBuiltinStyle 常量)或代表新样式的对象,来设置 NextParagraphStyle 属性。You can set the NextParagraphStyle property by using the local name of the style, an integer or a WdBuiltinStyle constant, or an object that represents the next style. 有关WdBuiltinStyle常量的列表,请参阅要设置的对象的样式属性。For a list of the WdBuiltinStyle constants, see the Style property for the object that you want to set.


本示例在活动文档中设置“标题 1”样式后接“标题 2”样式。This example sets the Heading 1 style to be followed by the Heading 2 style in the active document.

ActiveDocument.Styles(wdStyleHeading1).NextParagraphStyle = _ 

本示例新建一篇文档并添加一个名为“MyStyle”的段落样式。This example creates a new document and adds a paragraph style named "MyStyle." 该新样式根据“正文”样式创建,后接“标题 3”样式,左缩进量为 1 英寸(72 磅),设为加粗格式。The new style is based on the Normal style, is followed by the Heading 3 style, has a left indent of 1 inch (72 points), and is formatted as bold.

Set myDoc = Documents.Add 
Set myStyle = myDoc.Styles.Add(Name:= "MyStyle") 
 With myStyle 
 .BaseStyle = wdStyleNormal 
 .NextParagraphStyle = wdStyleHeading3 
 .ParagraphFormat.LeftIndent = 72 
 .Font.Bold = True 
 End With

另请参阅See also

样式对象Style Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.