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
- FixedSOMTableCell.cs
- PrintPreviewControl.cs
- EdmFunction.cs
- LogAppendAsyncResult.cs
- ITreeGenerator.cs
- XmlObjectSerializer.cs
- DataRow.cs
- UpdateTracker.cs
- ThicknessConverter.cs
- WmlLabelAdapter.cs
- NotSupportedException.cs
- LinkedList.cs
- Ipv6Element.cs
- XmlObjectSerializerReadContextComplex.cs
- TransportSecurityProtocolFactory.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- TextOptions.cs
- DrawingGroup.cs
- BezierSegment.cs
- SubordinateTransaction.cs
- XmlAnyElementAttribute.cs
- ArrayTypeMismatchException.cs
- BindStream.cs
- UnderstoodHeaders.cs
- DefaultValueConverter.cs
- LockedActivityGlyph.cs
- NonVisualControlAttribute.cs
- DoubleLinkListEnumerator.cs
- DesignerCategoryAttribute.cs
- BitmapEffect.cs
- WindowsFormsHostAutomationPeer.cs
- FormCollection.cs
- Sequence.cs
- EventEntry.cs
- HttpConfigurationSystem.cs
- DependencyPropertyAttribute.cs
- CheckBox.cs
- SpecialTypeDataContract.cs
- HScrollBar.cs
- ColorAnimationBase.cs
- Freezable.cs
- RuntimeCompatibilityAttribute.cs
- VisualBasicSettingsHandler.cs
- DataContractSerializerSection.cs
- TemplatePagerField.cs
- PropertyPathWorker.cs
- ComPlusInstanceContextInitializer.cs
- ReflectEventDescriptor.cs
- AsyncOperationLifetimeManager.cs
- _NegoState.cs
- ToolStripSplitButton.cs
- SystemInfo.cs
- hebrewshape.cs
- ViewValidator.cs
- ClientSideProviderDescription.cs
- PrintDialog.cs
- DataGridRow.cs
- TextParentUndoUnit.cs
- securitycriticaldataformultiplegetandset.cs
- Tracer.cs
- PagePropertiesChangingEventArgs.cs
- WebHeaderCollection.cs
- CodeDelegateInvokeExpression.cs
- GridViewRowEventArgs.cs
- Effect.cs
- DefaultParameterValueAttribute.cs
- PtsCache.cs
- MulticastNotSupportedException.cs
- PropertyPathWorker.cs
- SecurityPermission.cs
- FixedDocumentPaginator.cs
- ColorConvertedBitmapExtension.cs
- OutputCacheModule.cs
- XmlQuerySequence.cs
- CodeDomSerializationProvider.cs
- TemplateModeChangedEventArgs.cs
- RenderContext.cs
- ProtocolsConfigurationEntry.cs
- XpsColorContext.cs
- mediaeventshelper.cs
- SessionChannels.cs
- IResourceProvider.cs
- CommandTreeTypeHelper.cs
- ImpersonateTokenRef.cs
- D3DImage.cs
- MethodBody.cs
- Composition.cs
- ApplicationInfo.cs
- EventRouteFactory.cs
- SHA1.cs
- RepeaterItemCollection.cs
- HotSpot.cs
- IgnoreDeviceFilterElement.cs
- ScriptingSectionGroup.cs
- BinarySecretSecurityToken.cs
- Vars.cs
- DispatcherProcessingDisabled.cs
- SafeProcessHandle.cs
- CustomActivityDesigner.cs
- DataGridViewRowPrePaintEventArgs.cs