API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.AutoHyphenate property
Gets/sets the value for automatic hyphenation
Syntax:
Property Get AutoHyphenate() As cdrTriState
Property Let AutoHyphenate(ByVal Value As cdrTriState)
Remarks:
The AutoHyphenate property returns or specifies whether automatic hyphenation is enabled for a text range.
Examples:
The following VBA example enables automatic hyphenation.
Sub Test()
Dim t As Text
Dim s As Shape
Dim d As Document
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 4, 4, "This is an example.")
Set t = s.Text
t.Story.AutoHyphenate = cdrTrue 
End Sub