コード例 #1
0
ファイル: Dictionary.cs プロジェクト: Thor1Khan/enchant
 private void InitializeDictionaryInformation()
 {
   Bindings.enchant_dict_describe(_handle,
                                  delegate(DictionaryInfo dictionary)
                                  {
                                    _info = dictionary;
                                  });
 }
コード例 #2
0
 private void InitializeDictionaryInformation()
 {
     Bindings.enchant_dict_describe(_handle,
                                    delegate(DictionaryInfo dictionary)
     {
         _info = dictionary;
     });
 }
コード例 #3
0
 public static void enchant_dict_describe(SafeDictionaryHandle dict,
                                          EnchantDictDescribeDelegate describe)
 {
     enchant_dict_describe(dict,
                           delegate(IntPtr lang_tag,
                                    IntPtr provider_name,
                                    IntPtr provider_desc,
                                    IntPtr provider_dll_file,
                                    IntPtr user_data)
     {
         ProviderInfo provider =
             new ProviderInfo(
                 Utf8Marshaller.MarshalFromUtf8(provider_name),
                 Utf8Marshaller.MarshalFromUtf8(provider_desc),
                 Utf8Marshaller.MarshalFromUtf8(provider_dll_file));
         DictionaryInfo dictionary =
             new DictionaryInfo(
                 Utf8Marshaller.MarshalFromUtf8(lang_tag),
                 provider);
         describe(dictionary);
     },
                           IntPtr.Zero);
 }
コード例 #4
0
 public SpellCheckInfo(DictionaryInfo info)
 {
     _info = info;
 }
コード例 #5
0
ファイル: Bindings.cs プロジェクト: Thor1Khan/enchant
        public static void enchant_dict_describe(SafeDictionaryHandle dict,
																						 EnchantDictDescribeDelegate describe)
        {
            enchant_dict_describe(dict,
                                                        delegate(IntPtr lang_tag,
                                                                         IntPtr provider_name,
                                                                         IntPtr provider_desc,
                                                                         IntPtr provider_dll_file,
                                                                         IntPtr user_data)
                                                            {
                                                                ProviderInfo provider =
                                                                    new ProviderInfo(
                                                                        Utf8Marshaller.MarshalFromUtf8(provider_name),
                                                                        Utf8Marshaller.MarshalFromUtf8(provider_desc),
                                                                        Utf8Marshaller.MarshalFromUtf8(provider_dll_file));
                                                                DictionaryInfo dictionary =
                                                                    new DictionaryInfo(
                                                                        Utf8Marshaller.MarshalFromUtf8(lang_tag),
                                                                        provider);
                                                                describe(dictionary);
                                                            },
                                                        IntPtr.Zero);
        }