InputLangChangeEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / InputLangChangeEvent.cs / 1 / InputLangChangeEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 */ 
namespace System.Windows.Forms {
    using System.Runtime.InteropServices; 

    using System.Diagnostics;

    using System; 
    using System.Drawing;
    using System.Globalization; 
    using System.Windows.Forms; 
    using System.ComponentModel;
    using Microsoft.Win32; 

    /// 
    /// 
    ///     
    ///       Provides data for the 
    ///       event. 
    ///     
    /// 
    public class InputLanguageChangedEventArgs : EventArgs { 

        /// 
        /// 
        ///     The input language. 
        /// 
        private readonly InputLanguage inputLanguage; 
 
        /// 
        ///  
        ///     The culture of the input language.
        /// 
        private readonly CultureInfo culture;
        ///  
        /// 
        ///     The charSet associated with the new input language. 
        ///  
        private readonly byte   charSet;
 
        /**
         * @deprecated.  Use the other constructor instead.
         */
        ///  
        /// 
        ///  
        ///     
        ///       Initializes a new instance of the  class with the
        ///       specified locale and character set. 
        ///    
        /// 
        public InputLanguageChangedEventArgs(CultureInfo culture, byte charSet) {
            this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture); 
            this.culture = culture;
            this.charSet = charSet; 
        } 

        ///  
        /// 
        ///    
        ///       Initializes a new instance of the class with the specified input language and
        ///       character set. 
        ///    
        ///  
        public InputLanguageChangedEventArgs(InputLanguage inputLanguage, byte charSet) { 
            this.inputLanguage = inputLanguage;
            this.culture = inputLanguage.Culture; 
            this.charSet = charSet;
        }

        ///  
        /// 
        ///     
        ///       Gets the input language. 
        ///    
        ///  
        public InputLanguage InputLanguage {
            get {
                return inputLanguage;
            } 
        }
 
        ///  
        /// 
        ///     
        ///       Gets the locale of the input language.
        ///    
        /// 
        public CultureInfo Culture { 
            get {
                return culture; 
            } 
        }
 
        /// 
        /// 
        ///    
        ///       Gets the character set associated with the new input language. 
        ///    
        ///  
        public byte CharSet { 
            get {
                  return charSet; 
            }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK