Back to Devexpress

RichEditControl.HyphenationDictionaries Property

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-9c258cfa.md

latest3.0 KB
Original Source

RichEditControl.HyphenationDictionaries Property

Provides access to the collection of hyphenation dictionaries.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public ICollection<IHyphenationDictionary> HyphenationDictionaries { get; }
vb
Public ReadOnly Property HyphenationDictionaries As ICollection(Of IHyphenationDictionary)

Property Value

TypeDescription
ICollection<IHyphenationDictionary>

A collection of objects that implement the IHyphenationDictionary interface.

|

Remarks

The RichEditControl supports the following hyphenation dictionaries:

Note that the Document.Hyphenation property has no effect without dictionaries.

The code sample below adds two dictionaries to the dictionary collection:

csharp
CustomHyphenationDictionary exceptionsDictionary = new CustomHyphenationDictionary("hyphen_exc.dic", new System.Globalization.CultureInfo("EN-US"));
richEditControl.HyphenationDictionaries.Add(exceptionsDictionary);

OpenOfficeHyphenationDictionary hyphenationDictionary = new OpenOfficeHyphenationDictionary("hyph_sl_SI.dic", new System.Globalization.CultureInfo("sl-SL"));
richEditControl.HyphenationDictionaries.Add(hyphenationDictionary);
vb
Dim exceptionsDictionary As CustomHyphenationDictionary = New CustomHyphenationDictionary("hyphen_exc.dic", New System.Globalization.CultureInfo("EN-US"))
richEditControl.HyphenationDictionaries.Add(exceptionsDictionary)

Dim hyphenationDictionary As OpenOfficeHyphenationDictionary = New OpenOfficeHyphenationDictionary("hyph_sl_SI.dic", New System.Globalization.CultureInfo("sl-Si"))
richEditControl.HyphenationDictionaries.Add(hyphenationDictionary)

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace