Previous Document Next Document

Object Model Reference : Classes : S : StructHyphenationSettings : Properties : StructHyphenationSettings.MinCharactersAfter


StructHyphenationSettings.MinCharactersAfter

Property MinCharactersAfter As Long

Description

Member of StructHyphenationSettings

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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.