Object Model Reference : Classes : S : StructHyphenationSettings : Properties : StructHyphenationSettings.UseAutomaticHyphenation |
Property UseAutomaticHyphenation As Boolean
Member of StructHyphenationSettings
The UseAutomaticHyphenation property returns or specifies whether to enable automatic hyphenation for a portion of text. Specifying True automatically hyphenates text.
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 |
Copyright 2013 Corel Corporation. All rights reserved.