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

从所选文本中删除所有段落格式(包括通过段落样式应用的格式和手动应用的格式)。Removes all paragraph formatting (formatting applied either through paragraph styles or manually applied formatting) from the selected text.

语法Syntax

expressionexpression. ClearParagraphAllFormatting

_表达式_一个返回**Selection** 对象的表达式。expression An expression that returns a Selection object.

说明Remarks

此方法将删除所有段落格式。This method removes all paragraph formatting. 如果需要删除通过段落样式应用的段落格式, 请使用**ClearParagraphStyle** 方法。If you need to remove paragraph formatting applied through paragraph styles, use the ClearParagraphStyle method. 若要删除用户手动应用使用 Microsoft Word 格式功能的段落的段落格式,请使用 ClearParagraphDirectFormatting 方法。To remove paragraph formatting that the user has manually applied using Microsoft Word paragraph formatting features, use the ClearParagraphDirectFormatting method.

备注

若要删除字符格式, 请参阅**ClearCharacterAllFormattingClearCharacterDirectFormattingClearCharacterStyle** 方法。To remove character formatting, see the ClearCharacterAllFormatting, ClearCharacterDirectFormatting, or ClearCharacterStyle method.

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