Back to Devexpress

OpenOfficeHyphenationDictionary Class

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-2e55c118.md

latest2.8 KB
Original Source

OpenOfficeHyphenationDictionary Class

An OpenOffice hyphenation dictionary.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public class OpenOfficeHyphenationDictionary :
    HyphenationDictionaryBase
vb
Public Class OpenOfficeHyphenationDictionary
    Inherits HyphenationDictionaryBase

Remarks

Use an OpenOfficeHyphenationDictionary class object to add an OpenOffice hyphenation dictionary to the component’s collection.

The OpenOffice hyphenation dictionary is a .dic file containing hyphenation patterns in a specific encoding. The file can contain information about the minimal hyphenation distance from the left and right word end (LEFTHYPHENMIN and RIGHTHYPHENMIN). Use the LeftHyphenMin and RightHyphenMin properties to change these parameters.

You can download dictionaries from the OpenOffice Extensions Page. Note that OpenOffice license terms can be unacceptable for commercial projects.

The following code snippet creates a new OpenOfficeHyphenationDictionary object and adds it to the component’s collection:

csharp
OpenOfficeHyphenationDictionary hyphenationDictionary = new OpenOfficeHyphenationDictionary("hyph_sl_SI.dic", new System.Globalization.CultureInfo("sl-Si"));
server.HyphenationDictionaries.Add(hyphenationDictionary);
vb
Dim hyphenationDictionary As OpenOfficeHyphenationDictionary = New OpenOfficeHyphenationDictionary("hyph_sl_SI.dic", New System.Globalization.CultureInfo("sl-SL"))
server.HyphenationDictionaries.Add(hyphenationDictionary)

Implements

IHyphenationDictionary

Inheritance

Object HyphenationDictionaryBase OpenOfficeHyphenationDictionary

See Also

OpenOfficeHyphenationDictionary Members

DevExpress.XtraRichEdit.API.Native Namespace