Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / InputMethodStateChangeEventArgs.cs / 1 / 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
- AttributeSetAction.cs
- WmfPlaceableFileHeader.cs
- DynamicContractTypeBuilder.cs
- QueueProcessor.cs
- SrgsGrammar.cs
- AppLevelCompilationSectionCache.cs
- X509CertificateTrustedIssuerElementCollection.cs
- BaseHashHelper.cs
- GeneralTransform3DGroup.cs
- TagPrefixInfo.cs
- TitleStyle.cs
- ControlPager.cs
- Module.cs
- RefreshPropertiesAttribute.cs
- TextRunCacheImp.cs
- AnnotationAdorner.cs
- ArgumentException.cs
- TrackingQuery.cs
- OletxVolatileEnlistment.cs
- OleDbPropertySetGuid.cs
- RuleSettings.cs
- Column.cs
- SHA384Managed.cs
- WebPartConnectionsConfigureVerb.cs
- TableStyle.cs
- ProcessModelSection.cs
- TextMarkerSource.cs
- SecurityRuntime.cs
- Calendar.cs
- ImageDrawing.cs
- DataGridTable.cs
- SymbolType.cs
- ContextMenuService.cs
- MemberPathMap.cs
- NativeWindow.cs
- ConfigurationStrings.cs
- ResourceExpressionBuilder.cs
- ByeOperationCD1AsyncResult.cs
- TokenizerHelper.cs
- CSharpCodeProvider.cs
- MailMessageEventArgs.cs
- DataGridViewColumnConverter.cs
- EncodingDataItem.cs
- LineBreak.cs
- HotSpotCollection.cs
- TemplatePagerField.cs
- VectorConverter.cs
- AdornerPresentationContext.cs
- TextTreeNode.cs
- SafeArrayRankMismatchException.cs
- PolyQuadraticBezierSegment.cs
- BaseInfoTable.cs
- diagnosticsswitches.cs
- XmlException.cs
- FileUpload.cs
- ButtonFieldBase.cs
- ProgressBarHighlightConverter.cs
- sqlstateclientmanager.cs
- XmlJsonReader.cs
- NopReturnReader.cs
- AdPostCacheSubstitution.cs
- OdbcFactory.cs
- RunInstallerAttribute.cs
- Transform.cs
- EndpointNotFoundException.cs
- PrintEvent.cs
- DataGridColumnDropSeparator.cs
- ParamArrayAttribute.cs
- figurelength.cs
- JsonByteArrayDataContract.cs
- basevalidator.cs
- Timeline.cs
- ContentElement.cs
- Int16Animation.cs
- Memoizer.cs
- BoundingRectTracker.cs
- InternalMappingException.cs
- ComPersistableTypeElementCollection.cs
- MatrixStack.cs
- ComponentEvent.cs
- ApplyTemplatesAction.cs
- CustomErrorsSection.cs
- RegistryKey.cs
- SqlRemoveConstantOrderBy.cs
- RuntimeCompatibilityAttribute.cs
- DataSourceView.cs
- ImageCollectionCodeDomSerializer.cs
- dsa.cs
- HwndPanningFeedback.cs
- XmlConvert.cs
- DrawingBrush.cs
- QuaternionConverter.cs
- AncestorChangedEventArgs.cs
- ResourcePermissionBaseEntry.cs
- HttpServerVarsCollection.cs
- TimeoutHelper.cs
- InfocardChannelParameter.cs
- NativeMethods.cs
- StrokeFIndices.cs
- WindowsPrincipal.cs