Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- JoinTreeNode.cs
- MailAddress.cs
- NamespaceInfo.cs
- ProfileElement.cs
- ScrollableControlDesigner.cs
- TrackingServices.cs
- QilVisitor.cs
- FileCodeGroup.cs
- DrawingGroup.cs
- WebErrorHandler.cs
- XamlWrapperReaders.cs
- WeakReferenceList.cs
- CryptoHandle.cs
- HideDisabledControlAdapter.cs
- Codec.cs
- DataSpaceManager.cs
- GradientBrush.cs
- MulticastNotSupportedException.cs
- SqlDataSourceConfigureSelectPanel.cs
- VisualTreeFlattener.cs
- SchemaElementLookUpTable.cs
- SQLMoney.cs
- HtmlShimManager.cs
- RoleManagerModule.cs
- COM2FontConverter.cs
- GlyphCollection.cs
- BindingsCollection.cs
- ErrorRuntimeConfig.cs
- CollectionChangedEventManager.cs
- ColorAnimationBase.cs
- ClientConfigPaths.cs
- DelimitedListTraceListener.cs
- XomlCompilerParameters.cs
- PolicyLevel.cs
- InputScopeNameConverter.cs
- DrawingContextDrawingContextWalker.cs
- TerminatingOperationBehavior.cs
- HttpGetProtocolImporter.cs
- ILGenerator.cs
- lengthconverter.cs
- DataAdapter.cs
- BlurBitmapEffect.cs
- NestedContainer.cs
- OverflowException.cs
- CatalogPartCollection.cs
- RowCache.cs
- Int32.cs
- ByteStack.cs
- SecurityContext.cs
- EventItfInfo.cs
- SupportsEventValidationAttribute.cs
- EncryptedKey.cs
- WorkflowOperationErrorHandler.cs
- ImportRequest.cs
- ChangeProcessor.cs
- GridViewRowPresenterBase.cs
- TypeElement.cs
- HttpListenerResponse.cs
- Control.cs
- Label.cs
- Int32.cs
- AffineTransform3D.cs
- SpeakProgressEventArgs.cs
- FrameworkContextData.cs
- PageParserFilter.cs
- RightsDocument.cs
- HtmlForm.cs
- XmlQuerySequence.cs
- ImageClickEventArgs.cs
- PartialCachingControl.cs
- ConnectionsZone.cs
- DeviceContext.cs
- WebSysDefaultValueAttribute.cs
- SystemNetworkInterface.cs
- WebRequestModulesSection.cs
- Application.cs
- WindowAutomationPeer.cs
- EncoderParameters.cs
- GenericRootAutomationPeer.cs
- NetworkAddressChange.cs
- BitmapDecoder.cs
- RectIndependentAnimationStorage.cs
- ProfilePropertySettingsCollection.cs
- DynamicDocumentPaginator.cs
- XmlAttributeProperties.cs
- XmlWriterSettings.cs
- SapiGrammar.cs
- SchemaImporter.cs
- WebRequestModulesSection.cs
- Primitive.cs
- PolyLineSegmentFigureLogic.cs
- ToolBarButtonClickEvent.cs
- propertytag.cs
- BinaryConverter.cs
- XmlChildNodes.cs
- InputMethodStateChangeEventArgs.cs
- AppSettingsReader.cs
- WindowsIdentity.cs
- TreeBuilderBamlTranslator.cs
- TransactionInterop.cs