Range.InsertParagraphBefore 方法 (Word)Range.InsertParagraphBefore method (Word)

在指定的范围前插入一个新段落。Inserts a new paragraph before the specified range.

语法Syntax

expressionexpression. InsertParagraphBefore

expression:必需。expression Required. 代表范围对象的变量。A variable that represents a 'Range' object.

注解Remarks

在应用此方法之后,该范围会扩展,以包含新段落。After this method is applied, the range expands to include the new paragraph.

示例Example

以下示例在活动文档的开头插入一个新段落。This example inserts a new paragraph at the beginning of the active document.

ActiveDocument.Range.InsertParagraphBefore

另请参阅See also

Range 对象Range Object