Previous Document Next Document

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


EffectTextOnPath.DistanceFromPath

Property DistanceFromPath As Double

Description

Member of EffectTextOnPath

The DistanceFromPath property returns or specifies the vertical distance (offset) between the text and its path. The distance is specified in document units of measurements.

VBA example

The following VBA example creates text fitted to a circle and specifies a distance of 0.5" between the text and the circle.

Sub Test()
 Dim sText As Shape, sEllipse As Shape
 Set sText = ActiveLayer.CreateArtisticText(0, 0, "Text On Path")
 Set sEllipse = ActiveLayer.CreateEllipse2(4, 5, 2)
 sText.Text.FitToPath sEllipse
 sText.Effects(1).TextOnPath.DistanceFromPath = 0.5
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.