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; ////// /// public class InputLanguageChangingEventArgs : CancelEventArgs { ////// Provides data for the ////// event. /// /// /// 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. */ ////// /// /// 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 locale, character set, and acceptance. /// /// /// public InputLanguageChangingEventArgs(InputLanguage inputLanguage, bool sysCharSet) { if (inputLanguage == null) throw new ArgumentNullException("inputLanguage"); this.inputLanguage = inputLanguage; this.culture = inputLanguage.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 InputLanguage InputLanguage { get { return inputLanguage; } } ////// Gets the requested input language. /// ////// /// public CultureInfo Culture { get { return culture; } } ////// Gets the locale of the requested input language. /// ////// /// public bool SysCharSet { get { return sysCharSet; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets a value indicating whether the system default font supports the character /// set required for the requested input language. /// ///// 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; ////// /// public class InputLanguageChangingEventArgs : CancelEventArgs { ////// Provides data for the ////// event. /// /// /// 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. */ ////// /// /// 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 locale, character set, and acceptance. /// /// /// public InputLanguageChangingEventArgs(InputLanguage inputLanguage, bool sysCharSet) { if (inputLanguage == null) throw new ArgumentNullException("inputLanguage"); this.inputLanguage = inputLanguage; this.culture = inputLanguage.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 InputLanguage InputLanguage { get { return inputLanguage; } } ////// Gets the requested input language. /// ////// /// public CultureInfo Culture { get { return culture; } } ////// Gets the locale of the requested input language. /// ////// /// public bool SysCharSet { get { return sysCharSet; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets a value indicating whether the system default font supports the character /// set required for the requested input language. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputGestureCollection.cs
- Sql8ConformanceChecker.cs
- BitmapCodecInfo.cs
- ValidationHelper.cs
- OutputCacheProfile.cs
- RequestNavigateEventArgs.cs
- ISAPIRuntime.cs
- ThreadInterruptedException.cs
- SimpleFieldTemplateUserControl.cs
- PackUriHelper.cs
- XhtmlTextWriter.cs
- InlineObject.cs
- Soap12ProtocolReflector.cs
- ContextBase.cs
- MessageSecurityOverMsmqElement.cs
- DES.cs
- TextServicesHost.cs
- DataGridTableStyleMappingNameEditor.cs
- TemplatedMailWebEventProvider.cs
- TextRangeEditTables.cs
- FileDialogPermission.cs
- QilName.cs
- _CookieModule.cs
- PageContentCollection.cs
- BrowserCapabilitiesCompiler.cs
- XmlEventCache.cs
- MergeLocalizationDirectives.cs
- Byte.cs
- AssociationType.cs
- EqualityComparer.cs
- SendKeys.cs
- StrongNameMembershipCondition.cs
- WebPartConnectionCollection.cs
- DataRowComparer.cs
- X509CertificateInitiatorServiceCredential.cs
- StringAttributeCollection.cs
- SupportingTokenAuthenticatorSpecification.cs
- ExpressionBuilder.cs
- TypeInfo.cs
- CurrencyManager.cs
- SecurityProtocol.cs
- DataRelation.cs
- MenuItemBinding.cs
- GPRECTF.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- XmlDataSourceView.cs
- AuthenticationConfig.cs
- FormatVersion.cs
- LicenseContext.cs
- DbDataSourceEnumerator.cs
- EncodingNLS.cs
- NamedPipeHostedTransportConfiguration.cs
- WebZone.cs
- AnnotationDocumentPaginator.cs
- XsdValidatingReader.cs
- WindowsIdentity.cs
- AliasedExpr.cs
- ItemList.cs
- DPTypeDescriptorContext.cs
- SystemIcmpV4Statistics.cs
- WSFederationHttpBinding.cs
- TextSerializer.cs
- ScrollItemPattern.cs
- DefaultValidator.cs
- ViewBox.cs
- EntityRecordInfo.cs
- AxisAngleRotation3D.cs
- LockedHandleGlyph.cs
- HtmlInputButton.cs
- ManualResetEvent.cs
- HotSpot.cs
- DataRecordInternal.cs
- ConfigXmlWhitespace.cs
- Focus.cs
- DispatcherSynchronizationContext.cs
- Imaging.cs
- DiscoveryClientReferences.cs
- SoapFault.cs
- InputEventArgs.cs
- ItemCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- SliderAutomationPeer.cs
- DataGridViewDataConnection.cs
- DSASignatureDeformatter.cs
- SqlUDTStorage.cs
- ping.cs
- DataControlFieldCollection.cs
- MatrixCamera.cs
- HostVisual.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RequestQueue.cs
- SettingsPropertyValue.cs
- DataGridViewTextBoxEditingControl.cs
- TouchEventArgs.cs
- CriticalFinalizerObject.cs
- AssemblyCache.cs
- AsymmetricSignatureFormatter.cs
- ProviderSettings.cs
- Encoder.cs
- X509Utils.cs