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
- WindowPatternIdentifiers.cs
- UnmanagedMemoryStreamWrapper.cs
- WebZone.cs
- RemotingServices.cs
- XmlChildEnumerator.cs
- FolderNameEditor.cs
- DefaultValueConverter.cs
- HttpApplication.cs
- PenThreadWorker.cs
- securestring.cs
- VisualStates.cs
- PartialTrustHelpers.cs
- DataGridView.cs
- SecurityTokenException.cs
- LineSegment.cs
- DESCryptoServiceProvider.cs
- AddInProcess.cs
- ExceptionRoutedEventArgs.cs
- RunClient.cs
- PowerStatus.cs
- TextRangeProviderWrapper.cs
- PhysicalFontFamily.cs
- EntityDataSourceState.cs
- SourceInterpreter.cs
- CommonRemoteMemoryBlock.cs
- SemaphoreSecurity.cs
- SequenceRange.cs
- DocumentViewerBase.cs
- ProfilePropertyNameValidator.cs
- StateElementCollection.cs
- SafeBitVector32.cs
- PasswordTextNavigator.cs
- DBConnectionString.cs
- CodeAttachEventStatement.cs
- WebDisplayNameAttribute.cs
- HttpException.cs
- XPathDocument.cs
- ToolboxItemCollection.cs
- DataError.cs
- XmlName.cs
- CommonObjectSecurity.cs
- SqlError.cs
- ExpressionParser.cs
- WebPartHeaderCloseVerb.cs
- ControlValuePropertyAttribute.cs
- SafeArrayRankMismatchException.cs
- SetterBase.cs
- CompositeTypefaceMetrics.cs
- HttpResponseInternalBase.cs
- FillErrorEventArgs.cs
- XmlEnumAttribute.cs
- TransformCryptoHandle.cs
- ToolBarButtonClickEvent.cs
- DataReaderContainer.cs
- XmlDataImplementation.cs
- SystemUdpStatistics.cs
- WindowsTokenRoleProvider.cs
- FastPropertyAccessor.cs
- DispatcherHooks.cs
- DataContract.cs
- TraceSource.cs
- Cloud.cs
- AutomationIdentifierGuids.cs
- ObfuscationAttribute.cs
- RegisteredScript.cs
- WebPartZone.cs
- CodeTypeDeclarationCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- NotifyCollectionChangedEventArgs.cs
- XmlSerializableWriter.cs
- SubclassTypeValidator.cs
- Point3DConverter.cs
- BaseTemplateBuildProvider.cs
- StatusBarItemAutomationPeer.cs
- ContextMenuService.cs
- WebServiceAttribute.cs
- TrackingQuery.cs
- GeneralTransform3DGroup.cs
- CompiledQuery.cs
- AnonymousIdentificationSection.cs
- ConstructorArgumentAttribute.cs
- DiagnosticsElement.cs
- SQLConvert.cs
- TypeUsage.cs
- EditorAttribute.cs
- GridViewUpdatedEventArgs.cs
- BorderSidesEditor.cs
- BooleanToVisibilityConverter.cs
- TraceHandlerErrorFormatter.cs
- WebPartTransformer.cs
- ListenerConnectionModeReader.cs
- SpellerInterop.cs
- ByteStreamGeometryContext.cs
- _LocalDataStore.cs
- OdbcConnectionString.cs
- SqlMethods.cs
- CollectionType.cs
- DataTableTypeConverter.cs
- ExtensionQuery.cs
- EllipticalNodeOperations.cs