Back to Devexpress

IRichEditDocumentServer.HyphenationDictionaries Property

officefileapi-devexpress-dot-xtrarichedit-dot-iricheditdocumentserver-1adf8a17.md

latest3.0 KB
Original Source

IRichEditDocumentServer.HyphenationDictionaries Property

Provides access to the collection of hyphenation dictionaries.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
ICollection<IHyphenationDictionary>

A collection of objects implementing the IHyphenationDictionary interface.

|

Remarks

RichEditDocumentServer supports the following hyphenation dictionaries:

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

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"));
server.HyphenationDictionaries.Add(exceptionsDictionary);

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

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

See Also

IRichEditDocumentServer Interface

IRichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace