![]() |
![]() |
StructHyphenationSettings.MinCharactersAfter
Property MinCharactersAfter As Long
Member of StructHyphenationSettings
The MinCharactersAfter property returns or sets the minimum number of characters (including spaces) that must appear in the hot zone after a hyphen. For example, if the MinCharactersAfter is set to 4, a word in a paragraph text frame must contain at least four characters after a hyphen to receive hyphenation.
To return or set the MinCharactersAfter property, the UseAutomaticHyphenation property must be set to True.
The following code example enables automatic hyphenation for the selected text shape, 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.