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

返回一个**ShapeRange** 集合, 该集合代表选定内容中的所有Shape对象。Returns a ShapeRange collection that represents all the Shape objects in the selection. 此为只读属性。Read-only.



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


形状范围可以包含图形、形状、图片、OLE 对象、ActiveX 控件、文字对象和标注。The shape range can contain drawings, shapes, pictures, OLE objects, ActiveX controls, text objects, and callouts.


下面的示例为选定内容中的所有图形设置阴影。The following example applies shadow formatting to all the shapes in the selection.

Selection.ShapeRange.Shadow.Type = msoShadow6

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