Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / InputLangChangeEvent.cs / 1305376 / 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.
//
//-----------------------------------------------------------------------------
/*
*/
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResolveNameEventArgs.cs
- elementinformation.cs
- IItemContainerGenerator.cs
- RelationshipConverter.cs
- OutputCacheSettingsSection.cs
- WebPart.cs
- DefaultTextStore.cs
- UInt64Converter.cs
- WindowsFormsHelpers.cs
- ManipulationCompletedEventArgs.cs
- DnsPermission.cs
- IdentifierService.cs
- AuthenticationService.cs
- DataGridViewHeaderCell.cs
- SerializationAttributes.cs
- UserControl.cs
- AffineTransform3D.cs
- ChildTable.cs
- ToolStripArrowRenderEventArgs.cs
- Internal.cs
- FrameworkTemplate.cs
- codemethodreferenceexpression.cs
- Operand.cs
- ScriptComponentDescriptor.cs
- NameTable.cs
- SubclassTypeValidator.cs
- SingleAnimationBase.cs
- GestureRecognizer.cs
- XPathDocumentNavigator.cs
- _SslState.cs
- TextTreeInsertUndoUnit.cs
- EnumerableRowCollectionExtensions.cs
- FontSource.cs
- CodeDirectoryCompiler.cs
- SchemaTableColumn.cs
- OutputCacheSettings.cs
- ButtonBaseAutomationPeer.cs
- WebPartConnectVerb.cs
- Paragraph.cs
- Grammar.cs
- ScrollPattern.cs
- precedingsibling.cs
- SequenceNumber.cs
- HitTestFilterBehavior.cs
- XmlDataLoader.cs
- HorizontalAlignConverter.cs
- webclient.cs
- Point.cs
- TimersDescriptionAttribute.cs
- xmlformatgeneratorstatics.cs
- SafeArrayTypeMismatchException.cs
- ProcessRequestArgs.cs
- Win32.cs
- MapPathBasedVirtualPathProvider.cs
- SafeArrayRankMismatchException.cs
- ArgumentNullException.cs
- RootNamespaceAttribute.cs
- WebServicesInteroperability.cs
- CompositeActivityTypeDescriptor.cs
- FormatConvertedBitmap.cs
- ReflectionServiceProvider.cs
- HttpProfileBase.cs
- ToolboxDataAttribute.cs
- DataGridViewDesigner.cs
- StringExpressionSet.cs
- StringValidatorAttribute.cs
- FormViewDeletedEventArgs.cs
- MenuItemBindingCollection.cs
- GiveFeedbackEventArgs.cs
- mediaeventargs.cs
- ListViewDataItem.cs
- FacetEnabledSchemaElement.cs
- Grant.cs
- AlphaSortedEnumConverter.cs
- WithStatement.cs
- InkCanvasSelection.cs
- VectorCollectionValueSerializer.cs
- StylusSystemGestureEventArgs.cs
- WindowsButton.cs
- SafeEventLogWriteHandle.cs
- DiffuseMaterial.cs
- DBPropSet.cs
- StreamAsIStream.cs
- SerializationAttributes.cs
- StringAnimationUsingKeyFrames.cs
- SqlXml.cs
- coordinatorfactory.cs
- Baml6ConstructorInfo.cs
- MessageEnumerator.cs
- ServiceAuthorizationElement.cs
- EmptyEnumerator.cs
- UTF8Encoding.cs
- Storyboard.cs
- SQLSingleStorage.cs
- SystemColorTracker.cs
- BaseValidator.cs
- WindowsNonControl.cs
- WebColorConverter.cs
- RenderOptions.cs
- CodeGen.cs