所选内容。 Columns 属性 (Word)Selection.Columns property (Word)

返回一个Columns集合, 该集合代表选定内容中的所有表格列。Returns a Columns collection that represents all the table columns in a selection. 此为只读属性。Read-only.

语法Syntax

表达式expression.Columns

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

示例Example

本示例将当前列的宽度设置为 1 英寸。This example sets the width of the current column to 1 inch.

If Selection.Information(wdWithInTable) = True Then 
 Selection.Columns.SetWidth ColumnWidth:=InchesToPoints(1), _ 
 RulerStyle:=wdAdjustProportional 
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.