TXTextControl.Proofing.OpenOfficeDictionary Constructor

Initializes a new instance of the OpenOfficeDictionary class.

OpenOfficeDictionary(String)

Initializes a new instance of the OpenOfficeDictionary class by loading a Hunspell Open Source dictionary from a file.

[C#]
public OpenOfficeDictionary(string dictionaryPath);
[Visual Basic]
Public Sub New(dictionaryPath As String)
Parameter Description
dictionaryPath

Specifies the path for the Hunspell Open Source dictionary dict file. By specifying only the the dictionary name without any file path, the corresponding dictionary file of the default dictionary folder is used. The name of the specified Hunspell Open Source dictionary file must end with ".dic" or ".aff". If the file does not exist, an ArgumentException is thrown.

OpenOfficeDictionary(String[], String[], CultureInfo)

Initializes a new instance of the OpenOfficeDictionary class by loading a dictionary from string arrays that represent the content of a Hunspell Open Source dictionary and the corresponding affix file.

[C#]
public OpenOfficeDictionary(string[] dictionaryLines, string[] affixLines, System.Globalization.CultureInfo language);
[Visual Basic]
Public Sub New(dictionaryLines As String(), affixLines As String(), language As System.Globalization.CultureInfo)
Parameter Description
dictionaryLines

The string array that represents the content of a Hunspell Open Source dictionary file. Each string of this array is considered as a line of the dictionary file.

affixLines

The string array that represents the content of a Hunspell Open Source affix file. Each string of this array is considered as a line of the affix file.

language

Specifies the language of the dictionary.