public void RegisterDictionaryEx()
{
//ExStart
//ExFor:Hyphenation.RegisterDictionary(String, Stream)
//ExFor:Hyphenation.RegisterDictionary(String, String)
//ExSummary:Shows how to open and register a dictionary from a file.
Document doc = new Document(MyDir + "Document.doc");
// Register by string
Hyphenation.RegisterDictionary("en-US", MyDir + "hyph_en_US.dic");
// Register by stream
Stream dictionaryStream = new FileStream(MyDir + "hyph_de_CH.dic", FileMode.Open);
Hyphenation.RegisterDictionary("de-CH", dictionaryStream);
//ExEnd
}