Previous Document Next Document
StructHyphenationSettings.UseAutomaticHyphenation

Property UseAutomaticHyphenation As Boolean

Member of StructHyphenationSettings

The UseAutomaticHyphenation property returns or sets whether automatic hyphenation for a portion of text is enabled. If the UseAutomaticHyphenation property is True, CorelDRAW automatically hyphenates text.

The following code example enables automatic hyphenation for the selected text shape, 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.