HyphenationUnregisterDictionary Method

Unregisters a hyphenation dictionary for the specified language.

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

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public static void UnregisterDictionary(
	string language
)

Parameters

language
Type: SystemString
A language name, e.g. "en-US". See .NET documentation for "culture name" and RFC 4646 for details.

If null or empty string then all dictionaries are unregistered.
Examples
Shows how to un-register a dictionary.
Document doc = new Document(MyDir + "Document.docx");
Hyphenation.RegisterDictionary("en-US", MyDir + "hyph_en_US.dic");

Hyphenation.UnregisterDictionary("en-US");

Assert.AreEqual(false, Hyphenation.IsDictionaryRegistered("en-US"));
See Also