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
- TextCollapsingProperties.cs
- WebPartEditorApplyVerb.cs
- TextElementEnumerator.cs
- MetafileHeader.cs
- DataRecord.cs
- Bezier.cs
- FixedSOMLineCollection.cs
- TimeStampChecker.cs
- PathSegment.cs
- ProxyWebPartConnectionCollection.cs
- EmptyStringExpandableObjectConverter.cs
- RewritingPass.cs
- ConnectionConsumerAttribute.cs
- PromptEventArgs.cs
- WmlObjectListAdapter.cs
- SchemaTableColumn.cs
- EncryptedPackage.cs
- EntityCollectionChangedParams.cs
- MissingMemberException.cs
- Font.cs
- XamlValidatingReader.cs
- DoubleAnimationUsingPath.cs
- SecurityDocument.cs
- FieldToken.cs
- SqlInternalConnectionTds.cs
- StringCollectionEditor.cs
- DoubleStorage.cs
- RegistryPermission.cs
- Point3DKeyFrameCollection.cs
- XhtmlBasicLiteralTextAdapter.cs
- HttpFileCollection.cs
- SetStoryboardSpeedRatio.cs
- ChtmlCommandAdapter.cs
- DataGridViewMethods.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ContentPosition.cs
- SiteMembershipCondition.cs
- XPathItem.cs
- XPathScanner.cs
- PolyLineSegment.cs
- TableLayoutStyle.cs
- Model3DGroup.cs
- SafeThemeHandle.cs
- _AutoWebProxyScriptEngine.cs
- PeerConnector.cs
- OleDbRowUpdatingEvent.cs
- AxisAngleRotation3D.cs
- CatalogZone.cs
- XmlSchemaParticle.cs
- ToolStripOverflow.cs
- LineUtil.cs
- CompilerTypeWithParams.cs
- FormatConvertedBitmap.cs
- TouchEventArgs.cs
- wgx_exports.cs
- CloudCollection.cs
- XmlTextReader.cs
- Visual3D.cs
- TextFormatterImp.cs
- DBPropSet.cs
- FileLevelControlBuilderAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- BitmapEffectDrawing.cs
- RegionData.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- InternalSafeNativeMethods.cs
- RectConverter.cs
- QilGenerator.cs
- ButtonBase.cs
- CommandField.cs
- DesignerSerializationOptionsAttribute.cs
- StylusPlugInCollection.cs
- ToolTipService.cs
- SortFieldComparer.cs
- DataGridViewTextBoxEditingControl.cs
- UnsafeNativeMethodsCLR.cs
- SqlXml.cs
- DataServiceHostFactory.cs
- Baml2006KnownTypes.cs
- FontUnitConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- InlineUIContainer.cs
- SessionState.cs
- OneOfElement.cs
- PasswordDeriveBytes.cs
- DataGridSortCommandEventArgs.cs
- UniqueConstraint.cs
- processwaithandle.cs
- IdentifierService.cs
- CodeAttributeDeclaration.cs
- ExpressionBinding.cs
- DefaultSection.cs
- ViewGenResults.cs
- PackageRelationship.cs
- UnmanagedMemoryStreamWrapper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- UTF7Encoding.cs
- XmlSchemaComplexType.cs
- IDQuery.cs
- XmlStreamStore.cs