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
- SafeSystemMetrics.cs
- EpmContentDeSerializer.cs
- Int64.cs
- XmlSchemaSequence.cs
- CancelEventArgs.cs
- RegexBoyerMoore.cs
- WebPartTransformerCollection.cs
- TableCellCollection.cs
- ValidationErrorEventArgs.cs
- XsltQilFactory.cs
- BasicKeyConstraint.cs
- MediaElement.cs
- ComboBoxAutomationPeer.cs
- TextElementCollectionHelper.cs
- StaticExtension.cs
- ToolStripLabel.cs
- VBIdentifierName.cs
- ContentPosition.cs
- XmlReflectionImporter.cs
- PeerUnsafeNativeMethods.cs
- DesignerActionItem.cs
- BinaryOperationBinder.cs
- TransformGroup.cs
- DesignConnection.cs
- ImageConverter.cs
- ArrayTypeMismatchException.cs
- TokenBasedSet.cs
- PartitionResolver.cs
- controlskin.cs
- OleDbPermission.cs
- DateTimeConstantAttribute.cs
- DataSourceGroupCollection.cs
- selecteditemcollection.cs
- TextViewElement.cs
- BinaryUtilClasses.cs
- Model3DCollection.cs
- Perspective.cs
- DoubleSumAggregationOperator.cs
- RandomDelayQueuedSendsAsyncResult.cs
- AlternateViewCollection.cs
- ClientSection.cs
- LayoutEditorPart.cs
- rsa.cs
- MultipartContentParser.cs
- SqlInfoMessageEvent.cs
- XmlDataSourceView.cs
- GroupQuery.cs
- SqlStream.cs
- FontNameEditor.cs
- DefaultMergeHelper.cs
- GiveFeedbackEvent.cs
- ParenthesizePropertyNameAttribute.cs
- OverflowException.cs
- CompositionCommandSet.cs
- GlyphRunDrawing.cs
- SerializableAttribute.cs
- ObjectTag.cs
- UseLicense.cs
- RenderTargetBitmap.cs
- ComponentDispatcherThread.cs
- RegexMatchCollection.cs
- TableColumnCollectionInternal.cs
- EntitySetRetriever.cs
- ColorTransformHelper.cs
- CssTextWriter.cs
- XmlSchemaSimpleTypeRestriction.cs
- FormClosingEvent.cs
- AppDomainGrammarProxy.cs
- MetadataItemSerializer.cs
- COMException.cs
- PartialCachingAttribute.cs
- QilStrConcatenator.cs
- SqlRecordBuffer.cs
- XmlWrappingReader.cs
- TreeNodeBinding.cs
- MailMessageEventArgs.cs
- CorrelationValidator.cs
- XmlNodeComparer.cs
- FileResponseElement.cs
- ThumbButtonInfo.cs
- MetaForeignKeyColumn.cs
- MultiPropertyDescriptorGridEntry.cs
- AttachedPropertyInfo.cs
- CanonicalXml.cs
- CompilationSection.cs
- BufferModesCollection.cs
- shaper.cs
- TypeLibConverter.cs
- HttpServerVarsCollection.cs
- IndexedEnumerable.cs
- ApplicationFileParser.cs
- SafeWaitHandle.cs
- CustomMenuItemCollection.cs
- XmlQueryContext.cs
- DesignerCategoryAttribute.cs
- PropertyMapper.cs
- UserThread.cs
- HatchBrush.cs
- ByteConverter.cs
- DbDataSourceEnumerator.cs