API Documentation > CorelDRAW > 2025-v26 > Text > IVGText
Text.FitToPath method
Fits text to a path
Syntax:
Function FitToPath(ByVal Path As Shape) As Effect
Parameters:
Name Type Description
Path
Remarks:
The FitToPath method positions artistic text along a path. Text cannot be fitted to the path of another text object.
Examples:
The following VBA example places a text object on an ellipse.
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.Quadrant = cdrBottomQuadrant 
End Sub