Hyphenation Class
Provides methods for working with hyphenation dictionaries. These dictionaries prescribe where words of a specific language can be hyphenated.
Inheritance Hierarchy
SystemObject
  Aspose.WordsHyphenation

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public static class Hyphenation

The Hyphenation type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberCallback
Gets or sets callback interface used to request dictionaries when page layout of the document is built. This allows delay loading of dictionaries which may be usefull when processing documents in many languages.
Public propertyStatic memberWarningCallback
Called during a load hyphenation patterns, when an issue is detected that might result in formatting fidelity loss.
Methods
  NameDescription
Public methodStatic memberCode exampleIsDictionaryRegistered
Returns False if for the specified language there is no dictionary registered or if registered is Null dictionary, True otherwise.
Public methodStatic memberCode exampleRegisterDictionary(String, Stream)
Registers and loads a hyphenation dictionary for the specified language from a stream. Throws if dictionary cannot be read or has invalid format.
Public methodStatic memberCode exampleRegisterDictionary(String, String)
Registers and loads a hyphenation dictionary for the specified language from file. Throws if dictionary cannot be read or has invalid format.

This method can also be used to register Null dictionary to prevent Callback from being called repeatedly for the same language.

Public methodStatic memberCode exampleUnregisterDictionary
Unregisters a hyphenation dictionary for the specified language.

This is different from registering Null dictionary. Unregistering a dictionary enables callback for the specified language.

See Also