Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputMethodStateChangeEventArgs.cs / 1305600 / InputMethodStateChangeEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage Input Method. // // History: // 07/30/2003 : yutakas - Ported from .net tree. // //--------------------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Collections; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; using System.Windows.Threading; using System.Windows; using MS.Internal; //TextServicesInterop using MS.Utility; using MS.Win32; namespace System.Windows.Input { //----------------------------------------------------- // // InputMethodStateChjangedEventArgs class // //----------------------------------------------------- ////// This InputMethodStateChangedEventArgs class is /// public class InputMethodStateChangedEventArgs : EventArgs { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputMethodStateChangedEventArgs(InputMethodStateType statetype) { _statetype = statetype; } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ ////// IME (open/close) state is changed. /// public bool IsImeStateChanged { get { return (_statetype == InputMethodStateType.ImeState); } } ////// Microphone state is changed. /// public bool IsMicrophoneStateChanged { get { return (_statetype == InputMethodStateType.MicrophoneState); } } ////// Handwriting state is changed. /// public bool IsHandwritingStateChanged { get { return (_statetype == InputMethodStateType.HandwritingState); } } ////// SpeechMode state is changed. /// public bool IsSpeechModeChanged { get { return (_statetype == InputMethodStateType.SpeechMode); } } ////// ImeConversionMode state is changed. /// public bool IsImeConversionModeChanged { get { return (_statetype == InputMethodStateType.ImeConversionModeValues); } } ////// ImeSentenceMode state is changed. /// public bool IsImeSentenceModeChanged { get { return (_statetype == InputMethodStateType.ImeSentenceModeValues); } } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private InputMethodStateType _statetype; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage Input Method. // // History: // 07/30/2003 : yutakas - Ported from .net tree. // //--------------------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Collections; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; using System.Windows.Threading; using System.Windows; using MS.Internal; //TextServicesInterop using MS.Utility; using MS.Win32; namespace System.Windows.Input { //----------------------------------------------------- // // InputMethodStateChjangedEventArgs class // //----------------------------------------------------- ////// This InputMethodStateChangedEventArgs class is /// public class InputMethodStateChangedEventArgs : EventArgs { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputMethodStateChangedEventArgs(InputMethodStateType statetype) { _statetype = statetype; } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ ////// IME (open/close) state is changed. /// public bool IsImeStateChanged { get { return (_statetype == InputMethodStateType.ImeState); } } ////// Microphone state is changed. /// public bool IsMicrophoneStateChanged { get { return (_statetype == InputMethodStateType.MicrophoneState); } } ////// Handwriting state is changed. /// public bool IsHandwritingStateChanged { get { return (_statetype == InputMethodStateType.HandwritingState); } } ////// SpeechMode state is changed. /// public bool IsSpeechModeChanged { get { return (_statetype == InputMethodStateType.SpeechMode); } } ////// ImeConversionMode state is changed. /// public bool IsImeConversionModeChanged { get { return (_statetype == InputMethodStateType.ImeConversionModeValues); } } ////// ImeSentenceMode state is changed. /// public bool IsImeSentenceModeChanged { get { return (_statetype == InputMethodStateType.ImeSentenceModeValues); } } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private InputMethodStateType _statetype; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TagPrefixCollection.cs
- CaseDesigner.xaml.cs
- DataGridItem.cs
- TableRow.cs
- FontEditor.cs
- _UncName.cs
- UriParserTemplates.cs
- InputLangChangeEvent.cs
- TextRangeSerialization.cs
- SymbolMethod.cs
- TextProperties.cs
- CacheDependency.cs
- StringExpressionSet.cs
- PeerChannelFactory.cs
- MatrixConverter.cs
- LinearGradientBrush.cs
- PopupRootAutomationPeer.cs
- CellCreator.cs
- DotExpr.cs
- ClientSponsor.cs
- InvalidAsynchronousStateException.cs
- Blend.cs
- XmlDataProvider.cs
- EnumValAlphaComparer.cs
- nulltextnavigator.cs
- ThreadStateException.cs
- Hashtable.cs
- Menu.cs
- TagNameToTypeMapper.cs
- WebPartMenu.cs
- FilterFactory.cs
- SecurityDescriptor.cs
- SkewTransform.cs
- InputLanguageProfileNotifySink.cs
- FormsAuthenticationTicket.cs
- SerTrace.cs
- QilPatternVisitor.cs
- TimeSpanOrInfiniteValidator.cs
- ConfigXmlCDataSection.cs
- ClientBuildManagerCallback.cs
- SizeFConverter.cs
- DiffuseMaterial.cs
- mil_commands.cs
- IteratorFilter.cs
- NavigationPropertyEmitter.cs
- EmptyImpersonationContext.cs
- XmlReader.cs
- AsymmetricKeyExchangeDeformatter.cs
- _UriTypeConverter.cs
- FontWeights.cs
- SqlInfoMessageEvent.cs
- XmlTextWriter.cs
- Propagator.Evaluator.cs
- TextElement.cs
- IISUnsafeMethods.cs
- InstanceDataCollectionCollection.cs
- QueryBranchOp.cs
- TableTextElementCollectionInternal.cs
- EventRoute.cs
- PieceNameHelper.cs
- WindowsListViewScroll.cs
- SpAudioStreamWrapper.cs
- SoapSchemaImporter.cs
- Decoder.cs
- NetStream.cs
- UniqueConstraint.cs
- GlyphRunDrawing.cs
- SafeNativeMethods.cs
- ObjectIDGenerator.cs
- StrokeNodeData.cs
- ShaderEffect.cs
- DefaultHttpHandler.cs
- ArgIterator.cs
- XmlSchemaSet.cs
- ModuleConfigurationInfo.cs
- FormDesigner.cs
- BackgroundFormatInfo.cs
- ChannelCacheSettings.cs
- SqlBulkCopyColumnMapping.cs
- RouteItem.cs
- OracleConnection.cs
- _UriSyntax.cs
- FixedSOMContainer.cs
- SqlUtil.cs
- CodeGeneratorOptions.cs
- Regex.cs
- EntityDescriptor.cs
- WindowsFont.cs
- securitycriticaldataformultiplegetandset.cs
- FullTextState.cs
- TextClipboardData.cs
- TextEffectResolver.cs
- DynamicDataRouteHandler.cs
- ResolvedKeyFrameEntry.cs
- sqlmetadatafactory.cs
- QilGenerator.cs
- WindowsListViewScroll.cs
- EncodingNLS.cs
- View.cs
- EventLogPermission.cs