选定内容。 Shrink 方法 (Word)Selection.Shrink method (Word)

将所选内容缩减至下一级较小的文字单位。Shrinks the selection to the next smaller unit of text.

语法Syntax

expressionexpression. Shrink

_表达式_一个代表**Selection** 对象的变量。expression A variable that represents a Selection object.

备注Remarks

此方法的单位级数如下:整篇文档、节、段落、句子、单词及插入点。The unit progression for this method is as follows: entire document, section, paragraph, sentence, word, insertion point.

示例Example

以下示例将所选文本折叠到下一级较小的文字单位。This example collapses the selected text to the next smaller unit of text.

If Selection.Type = wdSelectionNormal Then 
 Selection.Shrink 
Else 
 MsgBox "You need to select some text." 
End If

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