Object Model Reference : Classes : T : Text : Properties : Text.Type |
Property Type As cdrTextType
Member of Text
The Type property returns the type of a text object, indicating whether the object is artistic text or paragraph text and whether it is fitted to a curve.
The Type property returns a read-only value of cdrTextType.
The following VBA example converts all paragraph-text objects to curves by first converting them to artistic text.
Sub Test() |
Dim s As Shape |
For Each s In ActivePage.FindShapes(, cdrTextShape) |
If s.Text.Type = cdrParagraphText Then |
s.Text.ConvertToArtistic |
s.ConvertToCurves |
End If |
Next s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.