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
- CaretElement.cs
- Brush.cs
- MappedMetaModel.cs
- TemplateField.cs
- processwaithandle.cs
- SortDescriptionCollection.cs
- WebPartHeaderCloseVerb.cs
- GuidelineSet.cs
- FrameSecurityDescriptor.cs
- CssTextWriter.cs
- WebPartCancelEventArgs.cs
- mil_commands.cs
- FunctionDescription.cs
- ObjectIDGenerator.cs
- SettingsAttributes.cs
- DataServiceQueryContinuation.cs
- ComponentManagerBroker.cs
- PlanCompiler.cs
- PkcsUtils.cs
- PenContexts.cs
- Msec.cs
- ContainerActivationHelper.cs
- TypeValidationEventArgs.cs
- ParsedAttributeCollection.cs
- QueryCursorEventArgs.cs
- ProcessModuleCollection.cs
- StructuralType.cs
- ThreadAttributes.cs
- FlagsAttribute.cs
- StringOutput.cs
- MissingFieldException.cs
- XmlSchemaCompilationSettings.cs
- SafeArrayRankMismatchException.cs
- ImpersonationContext.cs
- HtmlListAdapter.cs
- UserControl.cs
- SecurityContextTokenCache.cs
- _SSPIWrapper.cs
- SpeechUI.cs
- SecurityException.cs
- ThicknessKeyFrameCollection.cs
- RectValueSerializer.cs
- ColorEditor.cs
- PreviewKeyDownEventArgs.cs
- XsltSettings.cs
- StorageModelBuildProvider.cs
- RawAppCommandInputReport.cs
- ServiceContractAttribute.cs
- WebColorConverter.cs
- StructuredTypeInfo.cs
- StateMachineWorkflow.cs
- FragmentQuery.cs
- MruCache.cs
- WebResourceUtil.cs
- Point3DCollection.cs
- TargetInvocationException.cs
- TrustLevel.cs
- Vector.cs
- HtmlTernaryTree.cs
- DebugHandleTracker.cs
- ButtonField.cs
- GCHandleCookieTable.cs
- SecurityRuntime.cs
- DrawingServices.cs
- BinaryCommonClasses.cs
- StrongNameUtility.cs
- InstancePersistenceEvent.cs
- DeferredElementTreeState.cs
- SQLMoney.cs
- XmlNodeList.cs
- DesignerVerb.cs
- XmlDeclaration.cs
- NativeRecognizer.cs
- PrinterUnitConvert.cs
- OpenTypeLayout.cs
- InputReferenceExpression.cs
- SemanticResolver.cs
- SafePipeHandle.cs
- SchemaObjectWriter.cs
- BigIntegerStorage.cs
- TokenBasedSet.cs
- GeneralTransform3DCollection.cs
- AddIn.cs
- ComponentTray.cs
- FileInfo.cs
- FixUp.cs
- SerializationInfoEnumerator.cs
- DataGrid.cs
- TargetPerspective.cs
- FontSource.cs
- DataRowIndexBuffer.cs
- XdrBuilder.cs
- TextServicesHost.cs
- DataKeyPropertyAttribute.cs
- SqlParameterCollection.cs
- _ContextAwareResult.cs
- GridLength.cs
- OneOf.cs
- WebRequest.cs
- TargetConverter.cs