Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / RawTextInputReport.cs / 1 / RawTextInputReport.cs
using System; using System.Windows; namespace System.Windows.Input { ////// The RawTextInputReport class encapsulates the raw text input /// provided. /// ////// It is important to note that the InputReport class only contains /// blittable types. This is required so that the report can be /// marshalled across application domains. /// internal class RawTextInputReport : InputReport { ////// Constructs ad instance of the RawKeyboardInputReport class. /// /// /// The input source that provided this input. /// /// /// The mode in which the input is being provided. /// /// /// The time when the input occured. /// /// /// True if the char code is a dead char. /// /// /// True if the char code is a system char. /// /// /// True if the char code is a control char. /// /// /// The character code. /// public RawTextInputReport( PresentationSource inputSource, InputMode mode, int timestamp, bool isDeadCharacter, bool isSystemCharacter, bool isControlCharacter, char characterCode) : base(inputSource, InputType.Text, mode, timestamp) { _isDeadCharacter = isDeadCharacter; _isSystemCharacter = isSystemCharacter; _isControlCharacter = isControlCharacter; _characterCode = characterCode; } ////// Read-only access to the state of dead character /// public bool IsDeadCharacter {get {return _isDeadCharacter;}} ////// Read-only access to the state of system character /// public bool IsSystemCharacter {get {return _isSystemCharacter;}} ////// Read-only access to the state of control character /// public bool IsControlCharacter {get {return _isControlCharacter;}} ////// Read-only access to the character code that was reported. /// public char CharacterCode {get {return _characterCode;}} private readonly bool _isDeadCharacter; private readonly bool _isSystemCharacter; private readonly bool _isControlCharacter; private readonly char _characterCode; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows; namespace System.Windows.Input { ////// The RawTextInputReport class encapsulates the raw text input /// provided. /// ////// It is important to note that the InputReport class only contains /// blittable types. This is required so that the report can be /// marshalled across application domains. /// internal class RawTextInputReport : InputReport { ////// Constructs ad instance of the RawKeyboardInputReport class. /// /// /// The input source that provided this input. /// /// /// The mode in which the input is being provided. /// /// /// The time when the input occured. /// /// /// True if the char code is a dead char. /// /// /// True if the char code is a system char. /// /// /// True if the char code is a control char. /// /// /// The character code. /// public RawTextInputReport( PresentationSource inputSource, InputMode mode, int timestamp, bool isDeadCharacter, bool isSystemCharacter, bool isControlCharacter, char characterCode) : base(inputSource, InputType.Text, mode, timestamp) { _isDeadCharacter = isDeadCharacter; _isSystemCharacter = isSystemCharacter; _isControlCharacter = isControlCharacter; _characterCode = characterCode; } ////// Read-only access to the state of dead character /// public bool IsDeadCharacter {get {return _isDeadCharacter;}} ////// Read-only access to the state of system character /// public bool IsSystemCharacter {get {return _isSystemCharacter;}} ////// Read-only access to the state of control character /// public bool IsControlCharacter {get {return _isControlCharacter;}} ////// Read-only access to the character code that was reported. /// public char CharacterCode {get {return _characterCode;}} private readonly bool _isDeadCharacter; private readonly bool _isSystemCharacter; private readonly bool _isControlCharacter; private readonly char _characterCode; } } // 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
- CreateUserWizard.cs
- Window.cs
- ConfigXmlCDataSection.cs
- CacheForPrimitiveTypes.cs
- IpcChannel.cs
- PanelStyle.cs
- SelectionEditingBehavior.cs
- SynchronizationScope.cs
- _TransmitFileOverlappedAsyncResult.cs
- DependencyObject.cs
- Int32Rect.cs
- WebDisplayNameAttribute.cs
- PhysicalFontFamily.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Int32Rect.cs
- EncoderNLS.cs
- TemplateInstanceAttribute.cs
- CustomSignedXml.cs
- DataServiceRequestException.cs
- WindowsRichEdit.cs
- GridItemCollection.cs
- NameTable.cs
- ServiceHostFactory.cs
- PingReply.cs
- SoapReflectionImporter.cs
- TemplateColumn.cs
- OleDbConnection.cs
- FontInfo.cs
- DataGridDetailsPresenter.cs
- _CommandStream.cs
- IntPtr.cs
- RegexBoyerMoore.cs
- CachedPathData.cs
- ImmutableObjectAttribute.cs
- ProtectedConfigurationSection.cs
- GeometryCombineModeValidation.cs
- UnsafeNativeMethods.cs
- _StreamFramer.cs
- SystemTcpStatistics.cs
- ObjectItemLoadingSessionData.cs
- ColorConverter.cs
- CloudCollection.cs
- FixedSOMPage.cs
- LinkTarget.cs
- MiniModule.cs
- MeasureData.cs
- ConnectionManager.cs
- CustomDictionarySources.cs
- ToolStripGrip.cs
- DataTemplateKey.cs
- FirewallWrapper.cs
- Opcode.cs
- EncryptedReference.cs
- X509Certificate2Collection.cs
- ThreadBehavior.cs
- LinqDataSourceInsertEventArgs.cs
- LineProperties.cs
- XmlMemberMapping.cs
- ConfigPathUtility.cs
- KernelTypeValidation.cs
- TraceLevelHelper.cs
- ListenerAdapterBase.cs
- BuildResultCache.cs
- itemelement.cs
- StringKeyFrameCollection.cs
- OLEDB_Enum.cs
- ViewBox.cs
- LayoutUtils.cs
- documentation.cs
- SettingsProviderCollection.cs
- TraceListener.cs
- Group.cs
- ChangesetResponse.cs
- XmlDataSourceView.cs
- EncryptedKey.cs
- TextServicesLoader.cs
- CollectionBase.cs
- PropertyChangeTracker.cs
- PlainXmlWriter.cs
- ConstraintStruct.cs
- SolidBrush.cs
- SecurityUtils.cs
- PowerStatus.cs
- Control.cs
- AVElementHelper.cs
- TextBox.cs
- IntellisenseTextBox.cs
- XmlSchemaObjectCollection.cs
- HotSpotCollection.cs
- XsltSettings.cs
- SimpleHandlerBuildProvider.cs
- SqlDataRecord.cs
- ScrollItemProviderWrapper.cs
- MulticastOption.cs
- MarshalByRefObject.cs
- AudioException.cs
- SqlCacheDependency.cs
- BindingNavigator.cs
- CustomSignedXml.cs
- WebPartMovingEventArgs.cs