当前位置: 首页>>代码示例>>C#>>正文


C# Forms.InputLanguage类代码示例

本文整理汇总了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;
		}
开发者ID:nlhepler,项目名称:mono,代码行数:8,代码来源:InputLanguageCollection.cs

示例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;
 }
开发者ID:geo7geg,项目名称:WebApplication3,代码行数:8,代码来源:phoneindex.aspx.cs

示例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;
		}
开发者ID:nlhepler,项目名称:mono,代码行数:8,代码来源:InputLanguageCollection.cs

示例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;
        }
开发者ID:JianwenSun,项目名称:cc,代码行数:17,代码来源:InputLangChangeRequestEvent.cs

示例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;
         }
     }
 }
开发者ID:marcin-waszak,项目名称:glossary,代码行数:12,代码来源:Form2.cs

示例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);
        }
开发者ID:cyotek,项目名称:translateclient,代码行数:12,代码来源:InputLanguageManager.cs

示例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;
        }
开发者ID:marcin-waszak,项目名称:glossary,代码行数:16,代码来源:Form2.cs

示例8: InputLanguageWrapper

		public InputLanguageWrapper(InputLanguage lang)
		{
			Culture = lang.Culture;
			Handle = lang.Handle;
			LayoutName = lang.LayoutName;
		}
开发者ID:jwickberg,项目名称:libpalaso,代码行数:6,代码来源:InputLanguageWrapper.cs

示例9: t9_Enter

 private void t9_Enter(object sender, EventArgs e)
 {
     oldInput = InputLanguage.CurrentInputLanguage;
     InputLanguage.CurrentInputLanguage = null;
     L("����˰�ʡ����磺33.00%");
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:6,代码来源:FrmEconomyGuide1.cs

示例10: t7_Enter

 private void t7_Enter(object sender, EventArgs e)
 {
     oldInput = InputLanguage.CurrentInputLanguage;
     InputLanguage.CurrentInputLanguage = null;
     L("����Ӫ�ɱ����롰�̶��ʲ�ԭֵ���ı��ʡ����磺5%");
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:6,代码来源:FrmEconomyGuide1.cs

示例11: t3_Enter

 private void t3_Enter(object sender, EventArgs e)
 {
     oldInput = InputLanguage.CurrentInputLanguage;
     InputLanguage.CurrentInputLanguage = null;
     L("����������Ҫ��ʱ�䡣���磺10��");
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:6,代码来源:FrmEconomyGuide1.cs

示例12: t24_Enter

 private void t24_Enter(object sender, EventArgs e)
 {
     oldInput = InputLanguage.CurrentInputLanguage;
     InputLanguage.CurrentInputLanguage = null;
     L("�������ʽ��롰�����ʽ��롱�ı��ʡ����磺30.00%");
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:6,代码来源:FrmEconomyGuide1.cs

示例13: t15_Enter

 private void t15_Enter(object sender, EventArgs e)
 {
     oldInput = InputLanguage.CurrentInputLanguage;
     InputLanguage.CurrentInputLanguage = null;
     L("�ǽ�����������˰ ���磺10.00%");
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:6,代码来源:FrmEconomyGuide1.cs

示例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);
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:9,代码来源:InputLanguageCollection.cs

示例15: InputLanguageChangedEventArgs

		public InputLanguageChangedEventArgs(InputLanguage inputLanguage, byte charSet) {
			this.culture = inputLanguage.Culture;
			this.charset = charSet;
			this.input_language = inputLanguage;
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:5,代码来源:InputLanguageChangedEventArgs.cs


注:本文中的System.Windows.Forms.InputLanguage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。