Code:
/ FX-1434 / FX-1434 / 1.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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileStream.cs
- TaiwanLunisolarCalendar.cs
- XmlHierarchicalEnumerable.cs
- MethodCallTranslator.cs
- MenuAdapter.cs
- DataListGeneralPage.cs
- WebAdminConfigurationHelper.cs
- ProcessInfo.cs
- DetailsViewPagerRow.cs
- InvalidEnumArgumentException.cs
- AuthenticateEventArgs.cs
- ObjectTag.cs
- XamlDesignerSerializationManager.cs
- WindowsAuthenticationEventArgs.cs
- Win32Interop.cs
- TimelineGroup.cs
- _HelperAsyncResults.cs
- SafeFileHandle.cs
- TextDecorationCollection.cs
- Gdiplus.cs
- RichTextBox.cs
- ExpressionPrinter.cs
- BaseCodePageEncoding.cs
- XpsFontSubsetter.cs
- WebPartEditorCancelVerb.cs
- PrintDialog.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- OperationAbortedException.cs
- _FixedSizeReader.cs
- Site.cs
- CategoryList.cs
- Serializer.cs
- RemotingClientProxy.cs
- login.cs
- ScriptResourceHandler.cs
- SendMailErrorEventArgs.cs
- GeometryCollection.cs
- securestring.cs
- SecurityManager.cs
- RijndaelManaged.cs
- RelationshipConverter.cs
- CharUnicodeInfo.cs
- ConfigurationElementProperty.cs
- ExpressionHelper.cs
- DataRowCollection.cs
- AssociationSetEnd.cs
- MethodCallConverter.cs
- Publisher.cs
- DataGrid.cs
- DropTarget.cs
- _NetRes.cs
- ExpressionBuilder.cs
- QueryOutputWriter.cs
- SemaphoreSecurity.cs
- HashMembershipCondition.cs
- TableParagraph.cs
- StylusPlugin.cs
- FixedSOMPageConstructor.cs
- AQNBuilder.cs
- AllowedAudienceUriElement.cs
- UITypeEditor.cs
- ReverseComparer.cs
- SortDescription.cs
- FontConverter.cs
- WorkflowNamespace.cs
- WebUtility.cs
- odbcmetadatacolumnnames.cs
- BaseParser.cs
- WebCodeGenerator.cs
- RefType.cs
- ForeignKeyConstraint.cs
- ExpressionConverter.cs
- DispatchChannelSink.cs
- BinaryWriter.cs
- SessionPageStateSection.cs
- LinqDataSourceDeleteEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- BooleanExpr.cs
- ToolStripItemDataObject.cs
- MD5CryptoServiceProvider.cs
- TableAutomationPeer.cs
- ClientBuildManagerCallback.cs
- TableItemStyle.cs
- TemplateXamlTreeBuilder.cs
- Win32.cs
- XmlSchema.cs
- TCEAdapterGenerator.cs
- TimelineCollection.cs
- XmlCharCheckingReader.cs
- CssTextWriter.cs
- HttpConfigurationContext.cs
- DropShadowBitmapEffect.cs
- BamlResourceDeserializer.cs
- CommandConverter.cs
- DocumentAutomationPeer.cs
- Literal.cs
- ClientCultureInfo.cs
- DropDownButton.cs
- EntityDataSourceDesigner.cs
- DataSourceDesigner.cs