Word) (WrapFormat 对象

代表使文字环绕形状或形状范围的所有属性。

备注

使用 WrapFormat 属性返回 WrapFormat 对象。 下面的示例向活动文档添加一个椭圆,并指定文档文字环绕左右环绕该椭圆外切矩形的左右两侧。 将文档文本顶部、 底部、 左侧和与图形的方框的右边之间 0.1 英寸的边距。

Set myOval = _ 
 ActiveDocument.Shapes.AddShape(msoShapeOval, 36, 36, 100, 35) 
With myOval.WrapFormat 
 .Type = wdWrapSquare 
 .Side = wdWrapBoth 
 .DistanceTop = InchesToPoints(0.1) 
 .DistanceBottom = InchesToPoints(0.1) 
 .DistanceLeft = InchesToPoints(0.1) 
 .DistanceRight = InchesToPoints(0.1) 
End With

另请参阅

Word 对象模型参考

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。