IHyphenationCallback Interface
Wordize.IHyphenationCallback interface. Implemented by classes which can register hyphenation dictionaries.
IHyphenationCallback interface
Implemented by classes which can register hyphenation dictionaries.
public interface IHyphenationCallback
Methods
Name | Description |
---|---|
RequestDictionary(string) | Notifies application that hyphenation dictionary for the specified language wasn’t found and may need to be registered. |
Examples
Shows how to get notification about request hyphenation dictionary.
Wordize.Settings.Hyphenation.Callback = new HyphenationCallback();
Converter.Convert(MyDir + "SimpleHyphenation.docx", ArtifactsDir + "Hyphenation.Callback.pdf");
Implementation of IHyphenationCallback for getting the requested dictionary language.
private class HyphenationCallback : IHyphenationCallback
{
public void RequestDictionary(string language)
{
Console.WriteLine(language);
}
}