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

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

语法Syntax

expressionexpression. ClearCharacterAllFormatting

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

说明Remarks

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

备注

若要删除段落格式, 请参阅**ClearParagraphAllFormattingClearParagraphDirectFormattingClearParagraphStyle** 方法。To remove paragraph formatting, see the ClearParagraphAllFormatting, ClearParagraphDirectFormatting, or ClearParagraphStyle 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.