/**/
/// <summary>
/// 依据输入法描述获取输入法
/// </summary>
/// <param name="languageName">输入法描述(比如五笔)</param>
/// <returns></returns>
public static InputLanguage GetInputLanguage( string languageName)
... {
foreach(InputLanguage l in InputLanguage.InstalledInputLanguages)
...{
if(l.LayoutName.IndexOf(languageName)>=0)
...{
return l;
}
}
//如果当前输入法中无要查找的输入法则返回默认输入法
return InputLanguage.DefaultInputLanguage;
}
/// 依据输入法描述获取输入法
/// </summary>
/// <param name="languageName">输入法描述(比如五笔)</param>
/// <returns></returns>
public static InputLanguage GetInputLanguage( string languageName)
... {
foreach(InputLanguage l in InputLanguage.InstalledInputLanguages)
...{
if(l.LayoutName.IndexOf(languageName)>=0)
...{
return l;
}
}
//如果当前输入法中无要查找的输入法则返回默认输入法
return InputLanguage.DefaultInputLanguage;
}