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
- CodeTypeMemberCollection.cs
- WebPartUserCapability.cs
- EntitySqlException.cs
- InArgument.cs
- DataTemplateKey.cs
- SqlUdtInfo.cs
- InlineObject.cs
- ConditionalDesigner.cs
- LabelAutomationPeer.cs
- DataControlPagerLinkButton.cs
- ZipIOModeEnforcingStream.cs
- SendSecurityHeaderElementContainer.cs
- ServiceReference.cs
- ItemCheckEvent.cs
- PrtTicket_Base.cs
- OAVariantLib.cs
- NumericExpr.cs
- DelayedRegex.cs
- AttachedPropertyDescriptor.cs
- CLSCompliantAttribute.cs
- GcSettings.cs
- HtmlButton.cs
- ItemsPresenter.cs
- DataGridViewRowsAddedEventArgs.cs
- FragmentQuery.cs
- DataMemberFieldEditor.cs
- Context.cs
- FontUnitConverter.cs
- FactoryMaker.cs
- ScrollableControl.cs
- ManagedWndProcTracker.cs
- GridViewCommandEventArgs.cs
- NonParentingControl.cs
- RemotingConfiguration.cs
- odbcmetadatacolumnnames.cs
- KeyManager.cs
- _UriSyntax.cs
- DbXmlEnabledProviderManifest.cs
- MetadataPropertyvalue.cs
- URIFormatException.cs
- SqlServices.cs
- RecordBuilder.cs
- Rect3DValueSerializer.cs
- Part.cs
- ExcCanonicalXml.cs
- CaseInsensitiveHashCodeProvider.cs
- Aggregates.cs
- EntityModelBuildProvider.cs
- PlatformCulture.cs
- VirtualDirectoryMapping.cs
- NamespaceEmitter.cs
- RangeBaseAutomationPeer.cs
- CollectionViewGroup.cs
- MediaCommands.cs
- ObjectRef.cs
- AdCreatedEventArgs.cs
- DbSetClause.cs
- BitmapEffectInput.cs
- AttributeProviderAttribute.cs
- SoapInteropTypes.cs
- TemplatePropertyEntry.cs
- DataControlCommands.cs
- ReflectionPermission.cs
- DesignerEditorPartChrome.cs
- TrimSurroundingWhitespaceAttribute.cs
- EntityContainerAssociationSet.cs
- DelimitedListTraceListener.cs
- TripleDESCryptoServiceProvider.cs
- OrderByQueryOptionExpression.cs
- HtmlGenericControl.cs
- CallSiteBinder.cs
- CodeDefaultValueExpression.cs
- RestHandlerFactory.cs
- RelativeSource.cs
- SelectedDatesCollection.cs
- EntityClientCacheKey.cs
- MouseDevice.cs
- DupHandleConnectionReader.cs
- XmlException.cs
- PerfCounterSection.cs
- HighlightComponent.cs
- GregorianCalendar.cs
- HtmlContainerControl.cs
- SqlParameterCollection.cs
- BinarySecretKeyIdentifierClause.cs
- SafeEventLogWriteHandle.cs
- CharConverter.cs
- DetailsViewDeletedEventArgs.cs
- EndpointAddress10.cs
- TypeToStringValueConverter.cs
- SafeCryptHandles.cs
- DynamicFilter.cs
- ResourceType.cs
- PageParser.cs
- SerializerDescriptor.cs
- DependencyPropertyConverter.cs
- SmuggledIUnknown.cs
- CompressedStack.cs
- COAUTHIDENTITY.cs
- RegexMatch.cs