Hyphenation.Callback

Hyphenation Callback property. 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 useful when processing documents in many languages.

Hyphenation.Callback property

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 useful when processing documents in many languages.

public IHyphenationCallback Callback { get; set; }

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);
    }
}

See Also