Previous Document Next Document

Object Model Reference : Classes : E : EffectTextOnPath : Properties : EffectTextOnPath.Offset


EffectTextOnPath.Offset

Property Offset As Double

Description

Member of EffectTextOnPath

The Offset property returns or specifies the horizontal text offset from the beginning of the path.

VBA example

The following VBA example attaches a text shape to a path and places it 2" from the beginning of the path.

Sub Test()
 Dim sText As Shape, sPath As Shape
 Set sText = ActiveLayer.CreateArtisticText(0, 0, "Text On Path")
 Set sPath = ActiveLayer.CreateCurveSegment(0.6, 4.5, 7.8, 8.5, 5.2, 62, 5.3, -96)
 sText.Text.FitToPath sPath
 sText.Effects(1).TextOnPath.Offset = 2
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.