Selection.TypeParagraph 方法 (Word)

插入一个新的空段落。

语法

expression. TypeParagraph

expression:必需。 表示 Selection 对象的变量。

备注

本方法与 Enter 的功能相同。 如果选定内容没有折叠为一个插入点,则新段落取代选定内容。

InsertParagraphAfterInsertParagraphBefore 方法可插入一个新段而不删除选定内容。

示例

本示例将选定内容折叠至末尾,然后在其后插入一个新段落。

With Selection 
 .Collapse Direction:=wdCollapseEnd 
 .TypeParagraph 
End With

另请参阅

Selection 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。