本文整理汇总了C#中System.Windows.Forms.InputLanguage类的典型用法代码示例。如果您正苦于以下问题:C# InputLanguage类的具体用法?C# InputLanguage怎么用?C# InputLanguage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InputLanguage类属于System.Windows.Forms命名空间,在下文中一共展示了InputLanguage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IndexOf
public int IndexOf(InputLanguage value) {
for (int i = 0; i < base.InnerList.Count; i++) {
if ((this[i].Culture == value.Culture) && (this[i].LayoutName == value.LayoutName)) {
return i;
}
}
return -1;
}
示例2: ChangeInputLanguage
public void ChangeInputLanguage(InputLanguage InputLang)
{
// Check is this Language really installed. Raise exception to warn if it is not:
if (InputLanguage.InstalledInputLanguages.IndexOf(InputLang) == -1)
throw new ArgumentOutOfRangeException();
// InputLAnguage changes here:
InputLanguage.CurrentInputLanguage = InputLang;
}
示例3: Contains
public bool Contains(InputLanguage value) {
for (int i = 0; i < base.InnerList.Count; i++) {
if ((this[i].Culture == value.Culture) && (this[i].LayoutName == value.LayoutName)) {
return true;
}
}
return false;
}
示例4: InputLanguageChangingEventArgs
/// <include file='doc\InputLangChangeRequestEvent.uex' path='docs/doc[@for="InputLanguageChangingEventArgs.InputLanguageChangingEventArgs1"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of the <see cref='System.Windows.Forms.InputLanguageChangingEventArgs'/> class with the
/// specified input language, character set, and acceptance of
/// a language change.
/// </para>
/// </devdoc>
public InputLanguageChangingEventArgs(InputLanguage inputLanguage, bool sysCharSet) {
if (inputLanguage == null)
throw new ArgumentNullException("inputLanguage");
this.inputLanguage = inputLanguage;
this.culture = inputLanguage.Culture;
this.sysCharSet = sysCharSet;
}
示例5: comboBox2_SelectedIndexChanged
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (InputLanguage language in InputLanguage.InstalledInputLanguages)
{
if (comboBox2.SelectedItem as string == language.Culture.EnglishName)
{
Console.WriteLine("22");
langMeaning = language;
break;
}
}
}
示例6: IsLanguageSupported
public static bool IsLanguageSupported(InputLanguage inputLanguage, Language language)
{
if(inputLanguage == null)
throw new ArgumentNullException("inputLanguage");
// TODO: support of other languages
if(inputLanguage.LayoutName == "Strange Ukrainian" || inputLanguage.LayoutName == "Srange Ukrainian 1.6")
{
return language == Language.Russian || language == Language.Ukrainian;
}
return LanguageHelper.IsLanguageSupported(inputLanguage.Culture, language);
}
示例7: Form2
public Form2(InputLanguage t_langPhrase, InputLanguage t_langMeaning)
{
InitializeComponent();
langPhrase = t_langPhrase;
langMeaning = t_langMeaning;
foreach (InputLanguage language in InputLanguage.InstalledInputLanguages)
comboBox1.Items.Add(language.Culture.EnglishName);
foreach (InputLanguage language in InputLanguage.InstalledInputLanguages)
comboBox2.Items.Add(language.Culture.EnglishName);
comboBox1.SelectedItem = t_langPhrase.Culture.EnglishName;
comboBox2.SelectedItem = t_langMeaning.Culture.EnglishName;
}
示例8: InputLanguageWrapper
public InputLanguageWrapper(InputLanguage lang)
{
Culture = lang.Culture;
Handle = lang.Handle;
LayoutName = lang.LayoutName;
}
示例9: t9_Enter
private void t9_Enter(object sender, EventArgs e)
{
oldInput = InputLanguage.CurrentInputLanguage;
InputLanguage.CurrentInputLanguage = null;
L("����˰�ʡ����磺33.00%");
}
示例10: t7_Enter
private void t7_Enter(object sender, EventArgs e)
{
oldInput = InputLanguage.CurrentInputLanguage;
InputLanguage.CurrentInputLanguage = null;
L("����Ӫ�ɱ����롰�̶��ʲ�ԭֵ���ı��ʡ����磺5%");
}
示例11: t3_Enter
private void t3_Enter(object sender, EventArgs e)
{
oldInput = InputLanguage.CurrentInputLanguage;
InputLanguage.CurrentInputLanguage = null;
L("����������Ҫ��ʱ�䡣���磺10��");
}
示例12: t24_Enter
private void t24_Enter(object sender, EventArgs e)
{
oldInput = InputLanguage.CurrentInputLanguage;
InputLanguage.CurrentInputLanguage = null;
L("�������ʽ��롰�����ʽ��롱�ı��ʡ����磺30.00%");
}
示例13: t15_Enter
private void t15_Enter(object sender, EventArgs e)
{
oldInput = InputLanguage.CurrentInputLanguage;
InputLanguage.CurrentInputLanguage = null;
L("�ǽ�����������˰ ���磺10.00%");
}
示例14: InputLanguageCollection
/// <include file='doc\InputLanguageCollection.uex' path='docs/doc[@for="InputLanguageCollection.InputLanguageCollection"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='System.Windows.Forms.InputLanguageCollection'/> containing any array of <see cref='System.Windows.Forms.InputLanguage'/> objects.
/// </para>
/// </devdoc>
internal InputLanguageCollection(InputLanguage[] value) {
InnerList.AddRange(value);
}
示例15: InputLanguageChangedEventArgs
public InputLanguageChangedEventArgs(InputLanguage inputLanguage, byte charSet) {
this.culture = inputLanguage.Culture;
this.charset = charSet;
this.input_language = inputLanguage;
}