InsertParagraphBefore 方法

       

在指定的所选内容或区域前插入一个新段落。

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

expression.InsertParagraphBefore

expression   必需。返回 RangeSelection 对象的表达式。

示例

本示例在活动文档开始处插入一个新段落。

ActiveDocument.Range(Start:=0, End:=0).InsertParagraphBefore

本示例在所选内容之前插入“Hello”,并将其作为一个新段落。

With Selection
    .InsertParagraphBefore
    .InsertBefore "Hello"
End With