Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / InputLangChangeRequestEvent.cs / 1305376 / 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
- ActiveXMessageFormatter.cs
- EventMappingSettingsCollection.cs
- UInt32Converter.cs
- EventLogPropertySelector.cs
- SynchronizedInputProviderWrapper.cs
- MiniAssembly.cs
- CancellationTokenRegistration.cs
- XmlRootAttribute.cs
- InvalidAsynchronousStateException.cs
- XmlQueryCardinality.cs
- RelationshipDetailsRow.cs
- Action.cs
- WebRequestModulesSection.cs
- JournalEntry.cs
- BitmapImage.cs
- ZipIORawDataFileBlock.cs
- MaskedTextBoxDesigner.cs
- C14NUtil.cs
- Pen.cs
- Soap.cs
- CodeAttributeDeclaration.cs
- TreeNodeConverter.cs
- ReversePositionQuery.cs
- ErrorHandlerModule.cs
- DbConnectionPoolOptions.cs
- SchemaTypeEmitter.cs
- TypeUsageBuilder.cs
- FusionWrap.cs
- CompareInfo.cs
- GroupBox.cs
- ValidatedControlConverter.cs
- PermissionSetTriple.cs
- ListViewGroupItemCollection.cs
- InternalsVisibleToAttribute.cs
- ContainerControlDesigner.cs
- TrailingSpaceComparer.cs
- ActivityTypeCodeDomSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- UIElement3D.cs
- DataGridViewRowCollection.cs
- ResourceReferenceExpression.cs
- UserControlParser.cs
- DataGridViewSelectedCellCollection.cs
- StateBag.cs
- EntityDataSourceStatementEditorForm.cs
- EastAsianLunisolarCalendar.cs
- XPathNavigatorKeyComparer.cs
- ServiceModelConfiguration.cs
- XmlSchemaRedefine.cs
- MsmqBindingBase.cs
- ShapingEngine.cs
- ConfigurationSectionGroupCollection.cs
- ProxyHwnd.cs
- KeyValueConfigurationElement.cs
- ToolStripTextBox.cs
- RequestQueryProcessor.cs
- XmlNotation.cs
- DataGridViewDesigner.cs
- KnownBoxes.cs
- BindingUtils.cs
- PageAdapter.cs
- Convert.cs
- SByte.cs
- MarshalByValueComponent.cs
- TextSpan.cs
- ZoneLinkButton.cs
- EDesignUtil.cs
- LayoutManager.cs
- DataRow.cs
- CharEntityEncoderFallback.cs
- DefaultCommandConverter.cs
- InterleavedZipPartStream.cs
- RadioButtonPopupAdapter.cs
- BinaryUtilClasses.cs
- Stroke2.cs
- CallSiteOps.cs
- StructuredProperty.cs
- ConnectivityStatus.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- NotConverter.cs
- FileAuthorizationModule.cs
- ToolBarButtonClickEvent.cs
- NameValuePair.cs
- StringPropertyBuilder.cs
- Grant.cs
- ListViewAutomationPeer.cs
- WorkflowDefinitionContext.cs
- CrossContextChannel.cs
- RectangleHotSpot.cs
- PaginationProgressEventArgs.cs
- ProcessInputEventArgs.cs
- LowerCaseStringConverter.cs
- ListDataHelper.cs
- AdjustableArrowCap.cs
- LocalizabilityAttribute.cs
- ColumnCollection.cs
- TypeBrowserDialog.cs
- PrivilegeNotHeldException.cs
- Update.cs
- CodeDomSerializerException.cs