API Documentation > CorelDRAW > 2025-v26 > EffectTextOnPath > IVGEffectTextOnPath
EffectTextOnPath.DistanceFromPath property
Gets or sets the text distance from path
Syntax:
Property Get DistanceFromPath() As Double
Property Let DistanceFromPath(ByVal Value As Double)
Remarks:
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.
Examples:
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