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
- FileFormatException.cs
- RadialGradientBrush.cs
- MailWebEventProvider.cs
- UnsafeNativeMethods.cs
- ByteAnimationUsingKeyFrames.cs
- EventBuilder.cs
- MostlySingletonList.cs
- SettingsPropertyIsReadOnlyException.cs
- HttpClientCredentialType.cs
- CallbackHandler.cs
- ControlDesignerState.cs
- MinimizableAttributeTypeConverter.cs
- Variant.cs
- CodeSnippetTypeMember.cs
- Light.cs
- UTF8Encoding.cs
- SessionPageStateSection.cs
- Inflater.cs
- EventMappingSettingsCollection.cs
- BoundingRectTracker.cs
- StickyNoteAnnotations.cs
- ServiceOperationParameter.cs
- DispatchChannelSink.cs
- EditorZone.cs
- TrackingSection.cs
- InheritedPropertyChangedEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- FilePrompt.cs
- JsonObjectDataContract.cs
- Model3DGroup.cs
- DesignerCatalogPartChrome.cs
- XhtmlTextWriter.cs
- ConstrainedDataObject.cs
- _emptywebproxy.cs
- ContentPresenter.cs
- unsafeIndexingFilterStream.cs
- XappLauncher.cs
- CorrelationKeyCalculator.cs
- Rules.cs
- Cursor.cs
- DataSetMappper.cs
- ChildTable.cs
- DbMetaDataColumnNames.cs
- TextServicesPropertyRanges.cs
- XmlSerializationWriter.cs
- ViewRendering.cs
- LassoHelper.cs
- Facet.cs
- COM2Properties.cs
- FacetEnabledSchemaElement.cs
- IriParsingElement.cs
- SqlDuplicator.cs
- XmlUrlResolver.cs
- WebControlsSection.cs
- ContourSegment.cs
- HeaderCollection.cs
- AuthenticationService.cs
- ThreadStartException.cs
- TrackBar.cs
- WmlCalendarAdapter.cs
- SmiContextFactory.cs
- EventLogPermission.cs
- SQLRoleProvider.cs
- TextRunProperties.cs
- Tracer.cs
- OdbcRowUpdatingEvent.cs
- DataFormat.cs
- Operators.cs
- UTF32Encoding.cs
- EventToken.cs
- URLString.cs
- SoapProtocolImporter.cs
- RoutedCommand.cs
- CatalogPartCollection.cs
- FileDialog.cs
- TranslateTransform3D.cs
- BuildProviderAppliesToAttribute.cs
- MultiAsyncResult.cs
- KnownIds.cs
- DefaultParameterValueAttribute.cs
- CodeLabeledStatement.cs
- TypeElementCollection.cs
- TransactionManager.cs
- PartialArray.cs
- CodeAssignStatement.cs
- XmlProcessingInstruction.cs
- PageClientProxyGenerator.cs
- ConfigurationSettings.cs
- ZipPackage.cs
- TokenBasedSet.cs
- FontConverter.cs
- CustomAttribute.cs
- DataRowCollection.cs
- Bidi.cs
- RotateTransform.cs
- SponsorHelper.cs
- DBConcurrencyException.cs
- _NtlmClient.cs
- PassportAuthenticationEventArgs.cs
- MILUtilities.cs