Hi, firstly, you'll need to use the ".dict" files that are distributed with our product - these can be modified with Dict Manager.
Here's how to use the Dict Manager API
Reference DictManager.exe in your project (when you browse for the assembly, just change the file type to *.exe in the open dialog).
Create an instance: model = new DictManager.DictManagerModel();
Use any of the API calls:
CreateDict Creates a new dict file
LoadDict Loads an existing dict file
AddWord Adds a word to current open dict file
MergeDictFile Merges an existing dict file with the open dict file
MergeTextFile Merges an existing text file with the open dict file
RemoveWord Removes a word from the dict file
LookUp Checks if a word is in the dict file
SaveDict Saves the currently open dict file
Typical usages should be in the following order;
create or load
modifying operations
save.Eg. to merge the medical and English, programmatically
Code:
model = new DictManager.DictManagerModel();
model.LoadDict(@"c:\some\path\english.dict");
model.MergeDictFile(@"c:\some\path\medical.dict");
model.SaveDict();
To add words from a database;
Code:
model = new DictManager.DictManagerModel();
model.LoadDict(@"c:\some\path\english.dict");
foreach(string newWord in wordListFromDB)
model.AddWord(newWord);
model.SaveDict();
don't worry about duplicates, SaveDict takes care of it.
Once you have your saved .dict file, point to it with the DictFilePath property in the controls.
Jim
-your feedback is helpful to other users, thank you!Evaluation Downloads-your feedback is helpful to other users, thank you!