FitTextWidth 属性 (Word)Selection.FitTextWidth property (Word)

返回或设置在其中 Microsoft Word 文本适合当前所选内容中的宽度 (以当前度量单位)。Returns or sets the width (in the current measurement units) in which Microsoft Word fits the text in the current selection. 读/写单个Read/write Single.

语法Syntax

expressionexpression. FitTextWidth

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

示例Example

本示例将当前选定内容填入 5 厘米宽的空间。This example fits the current selection into a space five centimeters wide.

Selection.FitTextWidth = CentimetersToPoints(5)

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