Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TextSpanModifier.cs
- LinearKeyFrames.cs
- SafeRightsManagementQueryHandle.cs
- AutoResizedEvent.cs
- XmlDigitalSignatureProcessor.cs
- OutputCacheModule.cs
- Stroke.cs
- HandlerBase.cs
- CharacterMetrics.cs
- LogExtentCollection.cs
- RecognizeCompletedEventArgs.cs
- WorkflowCommandExtensionItem.cs
- ImageSourceConverter.cs
- DrawingServices.cs
- CreateUserWizardDesigner.cs
- XsltException.cs
- QueryCursorEventArgs.cs
- EntityDesignerUtils.cs
- XslNumber.cs
- WebResourceUtil.cs
- SynchronizedDispatch.cs
- EntityContainerRelationshipSet.cs
- ServiceBuildProvider.cs
- ReadWriteSpinLock.cs
- InstanceCreationEditor.cs
- HostProtectionException.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- BuildProvidersCompiler.cs
- TextDocumentView.cs
- SelectedGridItemChangedEvent.cs
- TypeConverterAttribute.cs
- CompositeDataBoundControl.cs
- ContextMenuStrip.cs
- MemoryPressure.cs
- contentDescriptor.cs
- OuterGlowBitmapEffect.cs
- RemotingException.cs
- DataGridViewComboBoxColumn.cs
- ScrollBar.cs
- coordinatorfactory.cs
- InternalBufferOverflowException.cs
- ServiceControllerDesigner.cs
- PropagationProtocolsTracing.cs
- SelectionEditor.cs
- ActivationServices.cs
- EntitySqlQueryCacheEntry.cs
- FixedDocumentPaginator.cs
- DataGridItemCollection.cs
- SafeNativeMethodsCLR.cs
- MarshalByRefObject.cs
- ArrangedElement.cs
- PersistenceContext.cs
- MenuAutomationPeer.cs
- Decoder.cs
- PersonalizationStateQuery.cs
- AnnouncementEndpoint.cs
- TextServicesProperty.cs
- BidPrivateBase.cs
- BrushProxy.cs
- SafeThreadHandle.cs
- CmsUtils.cs
- WebSysDescriptionAttribute.cs
- XmlText.cs
- Accessible.cs
- DateTime.cs
- TypeSystem.cs
- XmlArrayItemAttributes.cs
- AlternationConverter.cs
- MessagingDescriptionAttribute.cs
- ClientSponsor.cs
- StylusEditingBehavior.cs
- DataColumnMapping.cs
- OrthographicCamera.cs
- MergeEnumerator.cs
- XPathNodePointer.cs
- FormatSettings.cs
- ResourceSet.cs
- GridItemPatternIdentifiers.cs
- ReferenceEqualityComparer.cs
- UIElementHelper.cs
- ToolStripManager.cs
- ToolStripDropDownButton.cs
- Thread.cs
- MouseEvent.cs
- exports.cs
- DuplicateWaitObjectException.cs
- Trace.cs
- DynamicDocumentPaginator.cs
- EntitySetBase.cs
- httpstaticobjectscollection.cs
- NGCPageContentSerializerAsync.cs
- SqlDataSourceFilteringEventArgs.cs
- SpeechDetectedEventArgs.cs
- HostedElements.cs
- Grid.cs
- CurrencyManager.cs
- EnumerableRowCollectionExtensions.cs
- EpmTargetPathSegment.cs
- InvalidateEvent.cs
- TextPatternIdentifiers.cs