InsertParagraphAfter 方法

       

在区域或所选内容之后插入段落标记。

注意   在应用本方法之后,该区域或所选内容将扩展至包括新段落。

expression.InsertParagraphAfter

expression   必需。该表达式返回一个 RangeSelection 对象。

示例

本示例在当前段落之后插入一个新段落。

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

本示例在活动段落开头将文本作为一个新段落插入。

Set myRange = ActiveDocument.Range(0, 0)
With myRange
    .InsertBefore "Title"
    .ParagraphFormat.Alignment = wdAlignParagraphCenter
    .InsertParagraphAfter
End With

本示例在活动文档末尾插入一个段落。Content 属性返回一个 Range 对象。

ActiveDocument.Content.InsertParagraphAfter