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
- Typeface.cs
- EventPropertyMap.cs
- ListItemDetailViewAttribute.cs
- ConstraintCollection.cs
- DbDataReader.cs
- XmlWellformedWriter.cs
- BitArray.cs
- FieldDescriptor.cs
- WindowsGraphics.cs
- WindowsRichEdit.cs
- SmiXetterAccessMap.cs
- RegexCompilationInfo.cs
- Activation.cs
- TextSelectionHighlightLayer.cs
- CodeDomSerializer.cs
- __Error.cs
- WebPartChrome.cs
- ListItem.cs
- TransformedBitmap.cs
- ContentPlaceHolder.cs
- ControlParameter.cs
- DragEventArgs.cs
- ElementAction.cs
- SequenceNumber.cs
- ColumnMap.cs
- WebServiceHost.cs
- ToolStrip.cs
- OperationPickerDialog.cs
- XmlSchemaSimpleContentExtension.cs
- SessionState.cs
- __Error.cs
- ToolStripButton.cs
- CodeDirectoryCompiler.cs
- Column.cs
- PageBreakRecord.cs
- ValidationSettings.cs
- PropertyDescriptorComparer.cs
- _HeaderInfo.cs
- WebPartDisplayMode.cs
- UTF32Encoding.cs
- SiteMapDataSourceView.cs
- PropertyCondition.cs
- CalendarAutomationPeer.cs
- DocumentationServerProtocol.cs
- DataGridViewComboBoxEditingControl.cs
- DataGridViewTextBoxColumn.cs
- FilteredXmlReader.cs
- NamedElement.cs
- SendSecurityHeaderElementContainer.cs
- NetStream.cs
- CqlLexer.cs
- WebHeaderCollection.cs
- ReverseInheritProperty.cs
- Stopwatch.cs
- ResXResourceWriter.cs
- StrokeNodeOperations.cs
- BindingWorker.cs
- ParserHooks.cs
- DataStorage.cs
- MetadataPropertyAttribute.cs
- BackgroundWorker.cs
- CodeAccessPermission.cs
- DefaultCommandConverter.cs
- XamlFigureLengthSerializer.cs
- SecurityTokenValidationException.cs
- Int64Animation.cs
- WpfXamlLoader.cs
- StorageComplexPropertyMapping.cs
- UIAgentAsyncBeginRequest.cs
- WindowsListViewItemCheckBox.cs
- StateDesigner.cs
- LogEntryHeaderDeserializer.cs
- AppearanceEditorPart.cs
- DataReceivedEventArgs.cs
- Pair.cs
- ServicePointManager.cs
- Transactions.cs
- ObjectStateFormatter.cs
- SqlParameterizer.cs
- ControlDesigner.cs
- PocoEntityKeyStrategy.cs
- DelegateTypeInfo.cs
- BitmapMetadataEnumerator.cs
- PolygonHotSpot.cs
- CultureInfoConverter.cs
- PropertyFilterAttribute.cs
- IteratorFilter.cs
- ApplicationDirectory.cs
- InstallHelper.cs
- DBSchemaRow.cs
- RegexCharClass.cs
- DbDataReader.cs
- CodeArrayCreateExpression.cs
- SendMailErrorEventArgs.cs
- BaseTemplateBuildProvider.cs
- HttpValueCollection.cs
- ProjectionCamera.cs
- ExceptionHelpers.cs
- DispatcherProcessingDisabled.cs
- AccessDataSourceView.cs