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

在当前局部中添加或删除斜体字符格式。Adds the italic character format to or removes it from the current run.


expression.expression. ItalicRun

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


如果该局部既包含斜体文本,又有非斜体文本,则该方法将在整个局部中增添斜体字符格式。If the run contains a mix of italic and non-italic text, this method adds the italic character format to the entire run.


本示例为当前选定内容切换斜体格式。This example toggles the italic formatting for the current selection.


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