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
- AspProxy.cs
- Errors.cs
- MexHttpBindingCollectionElement.cs
- RTLAwareMessageBox.cs
- FormattedTextSymbols.cs
- nulltextcontainer.cs
- VisualTreeUtils.cs
- CodeAssignStatement.cs
- BuildProvider.cs
- FunctionImportMapping.cs
- Exceptions.cs
- ProtectedConfiguration.cs
- ImageUrlEditor.cs
- DataListItem.cs
- ProtocolViolationException.cs
- Calendar.cs
- ListManagerBindingsCollection.cs
- GenericUI.cs
- ObjectDataProvider.cs
- GenericTypeParameterConverter.cs
- _HTTPDateParse.cs
- WsdlServiceChannelBuilder.cs
- parserscommon.cs
- RecognitionResult.cs
- OwnerDrawPropertyBag.cs
- AndCondition.cs
- Vector3DKeyFrameCollection.cs
- namescope.cs
- ToolStripSeparatorRenderEventArgs.cs
- CategoryNameCollection.cs
- BitmapCache.cs
- grammarelement.cs
- DataGridViewIntLinkedList.cs
- ElementFactory.cs
- XmlFileEditor.cs
- ValuePattern.cs
- Matrix3D.cs
- FormsAuthenticationConfiguration.cs
- LayoutDump.cs
- JoinSymbol.cs
- HtmlForm.cs
- ScriptDescriptor.cs
- CallId.cs
- HotSpotCollection.cs
- WebPartMovingEventArgs.cs
- WindowsRichEditRange.cs
- MissingFieldException.cs
- EventEntry.cs
- CaseStatementSlot.cs
- FlowLayout.cs
- BitStack.cs
- ScriptResourceInfo.cs
- HScrollBar.cs
- ZipIOModeEnforcingStream.cs
- SessionSwitchEventArgs.cs
- FrameworkRichTextComposition.cs
- DrawItemEvent.cs
- ReaderWriterLockSlim.cs
- ConfigXmlCDataSection.cs
- PreservationFileWriter.cs
- SQlBooleanStorage.cs
- _NTAuthentication.cs
- _BufferOffsetSize.cs
- PieceDirectory.cs
- WebReferencesBuildProvider.cs
- EnvironmentPermission.cs
- CodePrimitiveExpression.cs
- SchemaNotation.cs
- DelegatingTypeDescriptionProvider.cs
- PersistenceTypeAttribute.cs
- DataGridViewRowStateChangedEventArgs.cs
- ProfileProvider.cs
- CodeBlockBuilder.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XmlWriterDelegator.cs
- ConfigurationValues.cs
- TextFormatterImp.cs
- ActivityStateRecord.cs
- DataBindingValueUIHandler.cs
- EditingMode.cs
- BrowserCapabilitiesCompiler.cs
- BindingCollection.cs
- FixedTextView.cs
- PTUtility.cs
- SettingsPropertyValueCollection.cs
- ProtocolElementCollection.cs
- TextEffectResolver.cs
- Tuple.cs
- TypeDescriptionProvider.cs
- path.cs
- IsolatedStorageFile.cs
- RewritingValidator.cs
- DataServiceQueryContinuation.cs
- DefaultEvaluationContext.cs
- HtmlInputCheckBox.cs
- ThicknessConverter.cs
- ToolStripKeyboardHandlingService.cs
- Int64Animation.cs
- MailAddressCollection.cs
- ListSortDescriptionCollection.cs