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
- ParallelTimeline.cs
- WebPartDescriptionCollection.cs
- PresentationAppDomainManager.cs
- Queue.cs
- ExtendedProtectionPolicyTypeConverter.cs
- Transactions.cs
- ScriptResourceInfo.cs
- ListViewItem.cs
- ToolStripRenderer.cs
- MultiTrigger.cs
- SchemaSetCompiler.cs
- SpellerInterop.cs
- Image.cs
- MultiDataTrigger.cs
- FileChangesMonitor.cs
- SqlFunctionAttribute.cs
- ResourceManagerWrapper.cs
- NamespaceDisplayAutomationPeer.cs
- ClipboardData.cs
- MarkupCompilePass1.cs
- Subtree.cs
- RawMouseInputReport.cs
- SqlUDTStorage.cs
- TableRowGroupCollection.cs
- Attributes.cs
- _SpnDictionary.cs
- PropertyGeneratedEventArgs.cs
- TableStyle.cs
- HashRepartitionEnumerator.cs
- ToolCreatedEventArgs.cs
- SimpleBitVector32.cs
- VSWCFServiceContractGenerator.cs
- XamlUtilities.cs
- ObjectParameter.cs
- RuleAttributes.cs
- BaseCodeDomTreeGenerator.cs
- ProgressiveCrcCalculatingStream.cs
- HttpChannelBindingToken.cs
- Span.cs
- Serializer.cs
- SelectionProcessor.cs
- BitmapEffectrendercontext.cs
- ToolboxItemCollection.cs
- DebugInfoExpression.cs
- ClientTarget.cs
- FlowDocumentReader.cs
- XmlTextReaderImplHelpers.cs
- XPathNodeIterator.cs
- WmiPutTraceRecord.cs
- HtmlToClrEventProxy.cs
- ServiceDocument.cs
- FormatterConverter.cs
- ArgumentValidation.cs
- ThrowHelper.cs
- MiniModule.cs
- SourceItem.cs
- CodeTryCatchFinallyStatement.cs
- ProcessHostFactoryHelper.cs
- FormViewUpdatedEventArgs.cs
- RadioButton.cs
- DefaultHttpHandler.cs
- FileDialog.cs
- ColorKeyFrameCollection.cs
- VBIdentifierName.cs
- ResourceReferenceKeyNotFoundException.cs
- SettingsPropertyIsReadOnlyException.cs
- EntityDataSourceState.cs
- ReferencedCollectionType.cs
- IntSecurity.cs
- CallSite.cs
- IpcServerChannel.cs
- DataContractSerializerElement.cs
- PathSegmentCollection.cs
- ISCIIEncoding.cs
- Scripts.cs
- LinkButton.cs
- DataColumnMappingCollection.cs
- PolicyUtility.cs
- Pair.cs
- WebPartMenuStyle.cs
- FilteredAttributeCollection.cs
- SimpleHandlerBuildProvider.cs
- baseaxisquery.cs
- SqlProviderManifest.cs
- Resources.Designer.cs
- DataBinding.cs
- SerialErrors.cs
- EdmSchemaError.cs
- BasicKeyConstraint.cs
- SessionPageStatePersister.cs
- SafeRightsManagementSessionHandle.cs
- QuadraticEase.cs
- IncrementalHitTester.cs
- EntityClientCacheKey.cs
- EnumValAlphaComparer.cs
- Parameter.cs
- MeshGeometry3D.cs
- ToolStripManager.cs
- BoundPropertyEntry.cs
- ByteKeyFrameCollection.cs