Previous Document Next Document
StructHyphenationSettings.MinWordLength

Property MinWordLength As Long

Member of StructHyphenationSettings

The MinWordLength property returns or sets the minimum number of characters a word must contain for it to receive automatic hyphenation.

In order to return or set the MinWordLength property, the UseAutomaticHyphenation property must be set to True.

The following code example enables automatic hyphenation for the selected text shape, specifying a minimum word length of 6 characters for hyphenation:

Sub Test() 
 With ActiveShape.Text.HyphenationSettings 
  .UseAutomaticHyphenation = True 
  .MinWordLength = 6 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.