API Documentation > CorelDRAW > 2025-v26 > StructHyphenationSettings > IVGStructHyphenationSettings
StructHyphenationSettings.UseAutomaticHyphenation property
Syntax:
Property Get UseAutomaticHyphenation() As Boolean
Property Let UseAutomaticHyphenation(ByVal Value As Boolean)
Remarks:
The UseAutomaticHyphenation property returns or specifies whether to enable automatic hyphenation for a portion of text. Specifying True automatically hyphenates text.
Examples:
The following VBA example enables automatic hyphenation for the selected text object, specifying that a minimum of 2 characters are to be left on a line or carried to the next line following a hyphen.
Sub Test()
With ActiveShape.Text.HyphenationSettings
  .UseAutomaticHyphenation = True
  .MinCharactersBefore = 2
  .MinCharactersAfter = 2
End With 
End Sub