Page tree
Skip to end of metadata
Go to start of metadata

Description

This class is used to get and set Word hyphen settings for a document.

C#
vb.net

Remarks

You cannot create a new WordHyphenSettings object. You must use the Document.HyphenSettings property to retrieve WordHyphenSettings properties for a document.

The following sample gets the WordHyphenSettings object of a document so you can start working with these properties.

Examples

C#
vb.net

Properties

Name

Description

AllowedConsecutiveHyphens

Sets or returns an int that represents the number of consecutive lines that can be auto-hyphenated by Word in this document.

AutoHyphen

Sets or returns a boolean that represents whether or not Word will automatically hyphenate this document.

CapitalHyphenation

Sets or returns a boolean that represents whether or not Word is allowed to hyphenate words that are capitalized in this document.

HyphenationWidth

Sets or returns an int that represents the hyphenation width in twips for this document. The hyphenation width is the amount of space to leave between the end of the last word in a line and the right margin. To reduce the number of hyphens, make the hyphenation zone wider. To reduce the raggedness of the right margin, make the hyphenation zone narrower. One twip = (1/20 pt) or (1/1440 in).
  • No labels