API Documentation > CorelDRAW > 2025-v26 > StructHyphenationSettings > IVGStructHyphenationSettings
StructHyphenationSettings.MinCharactersAfter property
Syntax:
Property Get MinCharactersAfter() As Long
Property Let MinCharactersAfter(ByVal Value As Long)
Remarks:
The MinCharactersAfter property returns or specifies the minimum number of characters (including spaces) to appear in the hot-zone after a hyphen. For example, if MinCharactersAfter is set to 4, the only words that receive hyphenation are the ones that would have at least four characters after the hyphen. For the MinCharactersAfter property to work, the StructHyphenationSettings.UseAutomaticHyphenation property must be set to True.
Examples:
The following VBA example enables automatic hyphenation for the selected text object, specifying a minimum of 2 characters 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