當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。