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
- PrimitiveSchema.cs
- XPathConvert.cs
- IntMinMaxAggregationOperator.cs
- PasswordTextContainer.cs
- BooleanSwitch.cs
- HtmlElementEventArgs.cs
- DbMetaDataFactory.cs
- XmlSerializerAssemblyAttribute.cs
- ControlValuePropertyAttribute.cs
- DataRowView.cs
- TextDecorationUnitValidation.cs
- Crc32Helper.cs
- OnOperation.cs
- InvalidAsynchronousStateException.cs
- DataSourceControl.cs
- XmlSubtreeReader.cs
- UnmanagedMemoryStreamWrapper.cs
- SwitchAttribute.cs
- DataObjectMethodAttribute.cs
- SHA1Managed.cs
- DataChangedEventManager.cs
- CodeNamespaceCollection.cs
- PropertyGridCommands.cs
- GrammarBuilderDictation.cs
- IPipelineRuntime.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- RuntimeEnvironment.cs
- ConstraintManager.cs
- InputMethodStateTypeInfo.cs
- IntegrationExceptionEventArgs.cs
- SecurityElement.cs
- WindowsIPAddress.cs
- ConfigurationConverterBase.cs
- sqlmetadatafactory.cs
- DelegatingConfigHost.cs
- SchemaImporterExtension.cs
- AnchoredBlock.cs
- ObsoleteAttribute.cs
- HwndStylusInputProvider.cs
- TypeDelegator.cs
- Serializer.cs
- odbcmetadatafactory.cs
- TrackingServices.cs
- InstanceContextManager.cs
- AttributeQuery.cs
- CleanUpVirtualizedItemEventArgs.cs
- ObjectResult.cs
- StructuralType.cs
- HttpModuleActionCollection.cs
- UnauthorizedAccessException.cs
- ServiceMetadataBehavior.cs
- Math.cs
- GenerateHelper.cs
- TextModifierScope.cs
- RequestNavigateEventArgs.cs
- ListComponentEditor.cs
- CounterSampleCalculator.cs
- EntitySqlQueryBuilder.cs
- RenderData.cs
- DataObjectFieldAttribute.cs
- RsaSecurityToken.cs
- DirectoryInfo.cs
- MatrixCamera.cs
- UnmanagedMarshal.cs
- C14NUtil.cs
- TextModifier.cs
- DataSpaceManager.cs
- AuthenticationModuleElementCollection.cs
- ACE.cs
- listviewsubitemcollectioneditor.cs
- DataSourceGroupCollection.cs
- EmptyEnumerator.cs
- DataGridViewRowHeaderCell.cs
- TypeBuilder.cs
- GeometryGroup.cs
- DrawingContext.cs
- StringAttributeCollection.cs
- MappedMetaModel.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RoleService.cs
- HandledMouseEvent.cs
- MessageQueueAccessControlEntry.cs
- ColumnResult.cs
- SqlDataSourceEnumerator.cs
- Point3DValueSerializer.cs
- SchemaNotation.cs
- ThreadNeutralSemaphore.cs
- ImageUrlEditor.cs
- BitmapEffectvisualstate.cs
- ParameterSubsegment.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlHelper.cs
- TraceRecord.cs
- OptionalColumn.cs
- SiteOfOriginContainer.cs
- ToolStripManager.cs
- UnknownBitmapDecoder.cs
- MetadataPropertyAttribute.cs
- DataListItemEventArgs.cs
- Keywords.cs