Previous Document Next Document

Object Model Reference : Classes : T : Text : Properties : Text.Type


Text.Type

Property Type As cdrTextType

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.