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

取消所选文本的字符格式,即通过功能区上的按钮或对话框手动应用的格式。Removes character formatting (formatting that has been applied manually using the buttons on the ribbon or through the dialog boxes) from the selected text.

语法Syntax

expressionexpression. ClearCharacterDirectFormatting

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

说明Remarks

此方法不会删除已通过字符样式应用的字符格式。This method does not remove character formatting that has been applied by using a character style. 若要删除用户使用字符样式应用的字符格式, 请使用**ClearCharacterStyle** 方法。To remove character formatting that the user has applied by using character styles, use the ClearCharacterStyle method. 若要删除所有字符格式,而不管是否已应用它使用字符样式或手动在 Microsoft Word 的格式设置功能通过使用 ClearCharacterAllFormatting 方法。To remove all character formatting, regardless of whether the user has applied it by using character styles or manually through the formatting features in Microsoft Word, use the ClearCharacterAllFormatting method.

备注

有关如何删除段落格式的详细信息, 请参阅**ClearParagraphAllFormattingClearParagraphDirectFormattingClearParagraphStyle** 方法。For more information about how 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.