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

插入一个新的空段落。Inserts a new, blank paragraph.


expression.expression. TypeParagraph

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


本方法与 Enter 的功能相同。This method corresponds to the functionality of the ENTER key. 如果选定内容没有折叠为一个插入点,则新段落取代选定内容。If the selection isn't collapsed to an insertion point, the new paragraph replaces the selection.

使用InsertParagraphAfterInsertParagraphBefore方法插入一个新段落, 而不删除所选内容。Use the InsertParagraphAfter or InsertParagraphBefore method to insert a new paragraph without deleting the contents of the selection.


本示例将选定内容折叠至末尾,然后在其后插入一个新段落。This example collapses the selection to its end and then inserts a new paragraph following it.

With Selection 
 .Collapse Direction:=wdCollapseEnd 
End With

另请参阅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.