Previous Document Next Document

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


StructHyphenationSettings.UseAutomaticHyphenation

Property UseAutomaticHyphenation As Boolean

Description

Member of StructHyphenationSettings

The UseAutomaticHyphenation property returns or specifies whether to enable automatic hyphenation for a portion of text. Specifying True automatically hyphenates text.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.