Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.PlaceTextInside


Shape.PlaceTextInside

Function PlaceTextInside(TextShape As Shape) As Shape

Description

Member of Shape

The PlaceTextInside method places specified text inside a shape.

Parameter
Description
TextShape
Specifies the shape in which to place the text

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.