Object Model Reference : Classes : S : Shape : Methods : Shape.PlaceTextInside |
Function PlaceTextInside(TextShape As Shape) As Shape
Member of Shape
The PlaceTextInside method places specified text inside a shape.
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 |
Copyright 2013 Corel Corporation. All rights reserved.