TXTextControl.Proofing.UserDictionary Constructor

Initializes a new instance of the UserDictionary class.

UserDictionary()

Creates an empty instance of the UserDictionary class.

[C#]
public UserDictionary();
[Visual Basic]
Public Sub New()

UserDictionary(String)

Initializes a new instance of the UserDictionary class by loading a specific user dictionary file.

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

Specifies the path of the user dictionary file. Using the dictionary name without any file path, the corresponding dictionary file in the default dictionary folder is used. The name of the specified user dictionary file must end with ".txd". If the file does not exist, or if it is not valid, an ArgumentException is thrown.

UserDictionary(String[], CultureInfo)

Initializes a new instance of the UserDictionary class by loading a string array that represents the content of a user dictionary file.

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

The string array that represents the content of a user dictionary file. Each string of the array IS considered as a line of the dictionary file.

language

Specifies the language of the dictionary.