Skip to main content

Hyphenation Dialog

The RichEditControl ships with an integrated Hyphenation dialog, shown in the images below.

dialog

End users can use the Page Setup group on the Page Layout ribbon tab to invoke the Hyphenation dialog. Refer to the How to: Create the RichEditControl with a Ribbon UI topic for information on how to add a Ribbon UI to the RichEditControl.

dialog-invoke

This dialog allows you to enable automatic hyphenation and specify whether to hyphenate words in CAPS.

Invoke the Dialog in Code

You can use ChangeHyphenationOptionsCommand to invoke this dialog. You can handle the RichEditControl.HyphenationFormShowing event to perform actions before the Hyphenation dialog is displayed, customize the default dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with a new dialog.

Tip

Use the Document.Hyphenation and Document.HyphenateCaps options to change the hyphenation options in code.