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
Syntaxpublic static void UnregisterDictionary(
string language
)
Public Shared Sub UnregisterDictionary (
language As String
)
public:
static void UnregisterDictionary(
String^ language
)
static member UnregisterDictionary :
language : string -> unit
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.
ExamplesShows 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