Object Model Reference : Classes : S : Shape : Properties : Shape.TextWrapOffset |
Property TextWrapOffset As Double
Member of Shape
The TextWrapOffset property returns or specifies the offset of wrapped text from its object.
The following VBA example wraps the paragraph text around the ellipse and offsets the text 0.5" from the ellipse.
Sub Test() |
Dim ell As Shape |
ActiveLayer.CreateParagraphText 1, 1, ActivePage.SizeWidth - 1, _ |
ActivePage.SizeHeight - 1, String$(2000, "a"), , , , 24 |
Set ell = ActiveLayer.CreateEllipse(2, 9, 6, 4) |
ell.WrapText = cdrWrapContourStraddle |
ell.TextWrapOffset = 0.5 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.