InsertParagraphAfter 方法 (Word)Selection.InsertParagraphAfter method (Word)

在所选内容之后插入段落标记。Inserts a paragraph mark after a selection.

语法Syntax

expression.expression. InsertParagraphAfter

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。A variable that represents a Selection object.

备注Remarks

使用此方法后,所选内容将扩展以包含新段落。After using this method, the selection expands to include the new paragraph.

示例Example

以下示例在当前段落之后插入一个新段落。This example inserts a new paragraph after the current paragraph.

With Selection 
 .Move Unit:=wdParagraph 
 .InsertParagraphAfter 
 .Collapse Direction:=wdCollapseStart 
End With

本示例在活动文档的末尾插入一个段落。This example inserts a paragraph at the end of the active document. Content属性返回一个Range对象。The Content property returns a Range object.

ActiveDocument.Content.InsertParagraphAfter

另请参阅See also

Selection 对象Selection 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.