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
- RowVisual.cs
- String.cs
- Style.cs
- WinFormsUtils.cs
- ConsumerConnectionPointCollection.cs
- QuaternionAnimationBase.cs
- Hyperlink.cs
- ArgIterator.cs
- AmbientLight.cs
- ItemCheckedEvent.cs
- EventPrivateKey.cs
- SizeF.cs
- ActivityBuilder.cs
- DataSourceIDConverter.cs
- SwitchLevelAttribute.cs
- XamlClipboardData.cs
- CachedPathData.cs
- XmlAttributeProperties.cs
- BindingWorker.cs
- Relationship.cs
- Range.cs
- AsnEncodedData.cs
- CompiledAction.cs
- TreeIterators.cs
- DataGridViewDataConnection.cs
- CredentialCache.cs
- SHA256CryptoServiceProvider.cs
- WindowsTokenRoleProvider.cs
- Vector.cs
- LocatorBase.cs
- ExtensionSimplifierMarkupObject.cs
- XmlWrappingWriter.cs
- ProviderIncompatibleException.cs
- BrushMappingModeValidation.cs
- ListViewContainer.cs
- QueryParameter.cs
- XmlCharCheckingReader.cs
- TemplateControlParser.cs
- OracleBoolean.cs
- ListItemViewControl.cs
- parserscommon.cs
- BindingListCollectionView.cs
- DesignSurfaceEvent.cs
- StylusPointPropertyInfo.cs
- _Connection.cs
- XPathSelfQuery.cs
- _AcceptOverlappedAsyncResult.cs
- InstanceView.cs
- AppDomainFactory.cs
- ContractMapping.cs
- AggregatePushdown.cs
- MetafileEditor.cs
- JsonReader.cs
- TreeViewHitTestInfo.cs
- PrefixQName.cs
- CodeArrayCreateExpression.cs
- MutexSecurity.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ScrollEvent.cs
- Parallel.cs
- OleDbDataAdapter.cs
- SafeReadContext.cs
- SqlDataSourceEnumerator.cs
- AutoGeneratedFieldProperties.cs
- BrowsableAttribute.cs
- DataReceivedEventArgs.cs
- ItemsControlAutomationPeer.cs
- DataStorage.cs
- ComponentRenameEvent.cs
- PageThemeCodeDomTreeGenerator.cs
- ResourceReferenceExpression.cs
- SystemIdentity.cs
- SettingsAttributes.cs
- ObjectQueryProvider.cs
- COM2PropertyDescriptor.cs
- DesignerView.xaml.cs
- ImmutableObjectAttribute.cs
- DynamicDataManager.cs
- SplineKeyFrames.cs
- StreamGeometry.cs
- DESCryptoServiceProvider.cs
- XmlConverter.cs
- DynamicValidator.cs
- EdmEntityTypeAttribute.cs
- CheckBox.cs
- DataSourceIDConverter.cs
- EventNotify.cs
- EventNotify.cs
- TextTrailingWordEllipsis.cs
- CodeTypeMemberCollection.cs
- SecurityContextTokenValidationException.cs
- SpeechRecognizer.cs
- TransportReplyChannelAcceptor.cs
- SoapEnumAttribute.cs
- TargetParameterCountException.cs
- DataKeyArray.cs
- ContentDefinition.cs
- CompositionCommandSet.cs
- ImageCodecInfo.cs
- ValidationRuleCollection.cs