Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.TextWrapOffset


Shape.TextWrapOffset

Property TextWrapOffset As Double

Description

Member of Shape

The TextWrapOffset property returns or specifies the offset of wrapped text from its object.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.