Documentation Index
Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
Use this file to discover all available pages before exploring further.
このオブジェクトを使用すると、ユーザー辞書にアクセスできます。IUserDictionaryDescription インターフェイスは IDictionaryDescription インターフェイスから派生しており、そのすべてのプロパティを継承します。
ユーザー辞書は、ユーザーが Dictionary オブジェクトを使用して作成できます。作成した辞書へのパスは、UserDictionaryDescription オブジェクトの FileName プロパティで指定します。次に、構成したオブジェクトを言語の辞書記述コレクションに追加します。
| 名前 | 型 | 説明 |
|---|
| FileName | BSTR | ユーザー辞書ファイルのパスです。このプロパティでは辞書の有効性は検証されず、実際に辞書が使用される際に後で検証されます。 |
オブジェクト図
このオブジェクトは、DictionaryDescriptions オブジェクトの Item メソッドおよび AddNew メソッドの出力パラメーターです。
FREngine.IFRDocument frdoc;
FREngine.IBaseLanguage baseLanguage;
string dictionaryFileName = "D:\\sample.amd";
// ユーザー辞書はすでに作成済みであるものとします
// ユーザー辞書をベース言語に割り当てます
// 辞書記述のコレクションを取得し、すべての項目を削除します
IDictionaryDescriptions dictionaryDescriptions = baseLanguage.DictionaryDescriptions;
dictionaryDescriptions.DeleteAll();
// ユーザー辞書記述を作成し、コレクションに追加します
IDictionaryDescription dictionaryDescription = dictionaryDescriptions.AddNew( DictionaryTypeEnum.DT_UserDictionary );
IUserDictionaryDescription userDictionaryDescription = dictionaryDescription.GetAsUserDictionaryDescription();
userDictionaryDescription.FileName = dictionaryFileName;
このオブジェクトは、Linux および Windows 用の次のコードサンプルで使用されています: CustomLanguage
辞書の使用方法
Dictionary
DictionaryDescription
DictionaryDescriptions
プロパティの使用方法