Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / InputLangChangeRequestEvent.cs / 1 / InputLangChangeRequestEvent.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 InputLanguageChangingEventArgs : CancelEventArgs {
///
///
/// The requested input language.
///
private readonly InputLanguage inputLanguage;
///
///
/// The locale of the requested input langugage.
///
private readonly CultureInfo culture;
///
///
/// Set to true if the system default font supports the character
/// set required for the requested input language.
///
private readonly bool sysCharSet;
/**
* @deprecated Should use the new constructor instead.
*/
///
///
///
///
/// Initializes a new instance of the class with the
/// specified locale, character set, and acceptance.
///
///
public InputLanguageChangingEventArgs(CultureInfo culture, bool sysCharSet) {
this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
this.culture = culture;
this.sysCharSet = sysCharSet;
}
///
///
///
/// Initializes a new instance of the class with the
/// specified input language, character set, and acceptance of
/// a language change.
///
///
public InputLanguageChangingEventArgs(InputLanguage inputLanguage, bool sysCharSet) {
if (inputLanguage == null)
throw new ArgumentNullException("inputLanguage");
this.inputLanguage = inputLanguage;
this.culture = inputLanguage.Culture;
this.sysCharSet = sysCharSet;
}
///
///
///
/// Gets the requested input language.
///
///
public InputLanguage InputLanguage {
get {
return inputLanguage;
}
}
///
///
///
/// Gets the locale of the requested input language.
///
///
public CultureInfo Culture {
get {
return culture;
}
}
///
///
///
/// Gets a value indicating whether the system default font supports the character
/// set required for the requested input language.
///
///
public bool SysCharSet {
get {
return sysCharSet;
}
}
}
}
// 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 InputLanguageChangingEventArgs : CancelEventArgs {
///
///
/// The requested input language.
///
private readonly InputLanguage inputLanguage;
///
///
/// The locale of the requested input langugage.
///
private readonly CultureInfo culture;
///
///
/// Set to true if the system default font supports the character
/// set required for the requested input language.
///
private readonly bool sysCharSet;
/**
* @deprecated Should use the new constructor instead.
*/
///
///
///
///
/// Initializes a new instance of the class with the
/// specified locale, character set, and acceptance.
///
///
public InputLanguageChangingEventArgs(CultureInfo culture, bool sysCharSet) {
this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
this.culture = culture;
this.sysCharSet = sysCharSet;
}
///
///
///
/// Initializes a new instance of the class with the
/// specified input language, character set, and acceptance of
/// a language change.
///
///
public InputLanguageChangingEventArgs(InputLanguage inputLanguage, bool sysCharSet) {
if (inputLanguage == null)
throw new ArgumentNullException("inputLanguage");
this.inputLanguage = inputLanguage;
this.culture = inputLanguage.Culture;
this.sysCharSet = sysCharSet;
}
///
///
///
/// Gets the requested input language.
///
///
public InputLanguage InputLanguage {
get {
return inputLanguage;
}
}
///
///
///
/// Gets the locale of the requested input language.
///
///
public CultureInfo Culture {
get {
return culture;
}
}
///
///
///
/// Gets a value indicating whether the system default font supports the character
/// set required for the requested input language.
///
///
public bool SysCharSet {
get {
return sysCharSet;
}
}
}
}
// 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
- DuplicateDetector.cs
- RolePrincipal.cs
- LoginView.cs
- XmlSchemaSimpleContentExtension.cs
- TransportSecurityBindingElement.cs
- JumpPath.cs
- WinFormsUtils.cs
- TargetParameterCountException.cs
- ProvideValueServiceProvider.cs
- Separator.cs
- ComEventsInfo.cs
- LowerCaseStringConverter.cs
- XhtmlBasicImageAdapter.cs
- PageStatePersister.cs
- PasswordRecovery.cs
- TrackingRecord.cs
- ConnectionPointCookie.cs
- AssociationSet.cs
- ArgIterator.cs
- SystemSounds.cs
- RuntimeVariableList.cs
- Int32RectConverter.cs
- PreApplicationStartMethodAttribute.cs
- CollectionViewSource.cs
- SqlCommand.cs
- UnwrappedTypesXmlSerializerManager.cs
- CommandManager.cs
- DebugView.cs
- InstanceData.cs
- x509utils.cs
- WizardSideBarListControlItemEventArgs.cs
- OLEDB_Util.cs
- OdbcConnectionPoolProviderInfo.cs
- ApplicationActivator.cs
- SystemIcmpV4Statistics.cs
- SqlErrorCollection.cs
- ReturnType.cs
- Process.cs
- Speller.cs
- CompilerScope.Storage.cs
- ObjectItemNoOpAssemblyLoader.cs
- AttachedPropertyMethodSelector.cs
- Util.cs
- GenericIdentity.cs
- DataError.cs
- DrawingState.cs
- PersonalizationProviderHelper.cs
- GcHandle.cs
- PersistenceMetadataNamespace.cs
- ParenthesizePropertyNameAttribute.cs
- ACE.cs
- Literal.cs
- Memoizer.cs
- LocalizedNameDescriptionPair.cs
- safesecurityhelperavalon.cs
- EncryptedReference.cs
- ColorEditor.cs
- _ProxyRegBlob.cs
- JpegBitmapEncoder.cs
- MetabaseServerConfig.cs
- ReadOnlyTernaryTree.cs
- MessageRpc.cs
- DesignBindingEditor.cs
- UICuesEvent.cs
- SecurityState.cs
- EpmSyndicationContentSerializer.cs
- LoginView.cs
- PasswordTextContainer.cs
- EntitySetBase.cs
- DiscreteKeyFrames.cs
- RenderData.cs
- UInt64.cs
- WebInvokeAttribute.cs
- DropDownButton.cs
- XPathExpr.cs
- Menu.cs
- ToggleButton.cs
- RuntimeArgumentHandle.cs
- RepeaterDesigner.cs
- UnsafeNativeMethods.cs
- SqlServices.cs
- SqlInternalConnection.cs
- ContentElementAutomationPeer.cs
- BooleanKeyFrameCollection.cs
- SignedInfo.cs
- WebMessageBodyStyleHelper.cs
- GridViewUpdateEventArgs.cs
- ParentControlDesigner.cs
- ResourceAttributes.cs
- ValidationErrorCollection.cs
- XmlTypeMapping.cs
- MouseOverProperty.cs
- RulePatternOps.cs
- HttpServerVarsCollection.cs
- Point3DKeyFrameCollection.cs
- FileIOPermission.cs
- HttpHostedTransportConfiguration.cs
- SpecularMaterial.cs
- TextDecorationCollection.cs
- ListBox.cs