Word) (Shape.WrapFormat 屬性

會傳回 WrapFormat 物件,其中包含指定之圖形周圍圍繞文字的屬性。 唯讀。

語法

expressionWrapFormat

表達 代表 Shape 物件的變數。

範例

本範例會將橢圓形新增至使用中檔,並指定檔文字會繞著環繞橢圓的方形左右兩側。 本範例會設定檔文字與正方形上、下、左側和右側之間的 0.1 英吋邊界。

Set myOval = _ 
 ActiveDocument.Shapes.AddShape(msoShapeOval, 36, 36, 90, 50) 
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

另請參閱

Shape 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應