API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.PlaceTextInside method
Places the given text inside a shape
Syntax:
Function PlaceTextInside(ByVal TextShape As Shape) As Shape
Parameters:
Name Type Description
TextShape
Remarks:
The PlaceTextInside method places specified text inside a shape.
Examples:
The following VBA example places the text inside the ellipse.
Sub Test()
Dim s As Shape
Dim s1 As Shape
Set s1 = ActiveLayer.CreateEllipse(0, 0, 2, 2)
Set s = ActiveLayer.CreateArtisticText(0, 0, "My Text", , , "Arial Black", 24)
s1.PlaceTextInside s 
End Sub