Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / RawTextInputReport.cs / 1305600 / 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
- StylusCaptureWithinProperty.cs
- DotExpr.cs
- CharacterMetricsDictionary.cs
- MulticastOption.cs
- GlobalAclOperationRequirement.cs
- Selection.cs
- NavigationCommands.cs
- SoapMessage.cs
- EdmItemCollection.cs
- StringFreezingAttribute.cs
- ArglessEventHandlerProxy.cs
- WebPartExportVerb.cs
- MetaType.cs
- Scene3D.cs
- FixedNode.cs
- HttpRequest.cs
- AVElementHelper.cs
- TreeViewDataItemAutomationPeer.cs
- MappingSource.cs
- UserPreferenceChangedEventArgs.cs
- PromptBuilder.cs
- OleCmdHelper.cs
- PresentationTraceSources.cs
- Rect3D.cs
- RepeaterDataBoundAdapter.cs
- ADRoleFactoryConfiguration.cs
- WebServiceParameterData.cs
- WebPartRestoreVerb.cs
- SHA384Managed.cs
- CodeCatchClause.cs
- CanonicalFontFamilyReference.cs
- ISessionStateStore.cs
- Rectangle.cs
- Journal.cs
- _BasicClient.cs
- DataControlFieldCell.cs
- GlyphTypeface.cs
- TableAutomationPeer.cs
- AssemblyCollection.cs
- SemanticResolver.cs
- DbException.cs
- FileSystemEventArgs.cs
- NativeMethodsCLR.cs
- DesignerActionHeaderItem.cs
- GridViewCommandEventArgs.cs
- DocumentCollection.cs
- PointAnimation.cs
- InputLangChangeEvent.cs
- ResXFileRef.cs
- TextBox.cs
- AssignDesigner.xaml.cs
- CellTreeNode.cs
- StickyNote.cs
- QilPatternFactory.cs
- PageThemeCodeDomTreeGenerator.cs
- ArglessEventHandlerProxy.cs
- Calendar.cs
- UserControl.cs
- PointAnimationUsingKeyFrames.cs
- CustomWebEventKey.cs
- GenericIdentity.cs
- DataGrid.cs
- SqlUserDefinedTypeAttribute.cs
- HtmlShimManager.cs
- ComponentManagerBroker.cs
- XmlAutoDetectWriter.cs
- DefaultDiscoveryService.cs
- Delay.cs
- Module.cs
- PrivilegedConfigurationManager.cs
- ErrorWebPart.cs
- Ops.cs
- SequenceNumber.cs
- RequestDescription.cs
- SendKeys.cs
- PixelFormat.cs
- CachedPathData.cs
- HasCopySemanticsAttribute.cs
- BypassElementCollection.cs
- SeparatorAutomationPeer.cs
- HttpRequestWrapper.cs
- _LoggingObject.cs
- CompletedAsyncResult.cs
- ProgressPage.cs
- PolyBezierSegment.cs
- IssuedTokenClientElement.cs
- BrowserInteropHelper.cs
- _DigestClient.cs
- Formatter.cs
- _DomainName.cs
- StaticContext.cs
- TextBoxView.cs
- ReliableChannelBinder.cs
- WebPartEditorCancelVerb.cs
- TerminatorSinks.cs
- DisableDpiAwarenessAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- GPStream.cs
- PrePostDescendentsWalker.cs
- ScriptRegistrationManager.cs