API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateParagraphText method
Creates paragraph text on a layer
Syntax:
Function CreateParagraphText(ByVal Left As Double, ByVal Top As Double, ByVal Right As Double, ByVal Bottom As Double, Optional ByVal Text As String, Optional ByVal LanguageID As cdrTextLanguage = cdrLanguageNone, Optional ByVal CharSet As cdrTextCharSet = cdrCharSetMixed, Optional ByVal Font As String, Optional ByVal Size As Single = 0, Optional ByVal Bold As cdrTriState = cdrUndefined, Optional ByVal Italic As cdrTriState = cdrUndefined, Optional ByVal Underline As cdrFontLine = cdrMixedFontLine, Optional ByVal Alignment As cdrAlignment = cdrMixedAlignment) As Shape
Parameters:
Name Type Description
Left
Double
Top
Double
Right
Double
Bottom
Double
Text
String
LanguageID
Specifies the language.
CharSet
Specifies the character set.
Font
String
Size
Single
Specifies the font size.
Bold
Specifies whether to apply boldface.
Italic
Specifies whether to apply italics.
Underline
Specifies an underline to apply.
Alignment
Specifies the alignment.
Remarks:
The CreateParagraphText method creates a paragraph-text object at a specified location on a layer.
Examples:
The following VBA example creates a paragraph-text object, formatted in boldface Times New Roman font.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateParagraphText(0, 0, 4, 4, "Paragraph Text", , , _
  "Times New Roman", 24, cdrTrue, cdrTrue, , cdrCenterAlignment) 
End Sub