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
- CaseInsensitiveOrdinalStringComparer.cs
- ArrangedElementCollection.cs
- BrowserCapabilitiesFactory.cs
- SqlCacheDependencyDatabase.cs
- TextRangeEditLists.cs
- FilteredSchemaElementLookUpTable.cs
- objectquery_tresulttype.cs
- DataPagerField.cs
- TargetConverter.cs
- DataControlFieldCollection.cs
- IPPacketInformation.cs
- EndpointBehaviorElement.cs
- ObjectFullSpanRewriter.cs
- TemplateParser.cs
- TransformationRules.cs
- ContextMenuStrip.cs
- SqlDataSourceConfigureSortForm.cs
- TypeSystem.cs
- FieldNameLookup.cs
- JoinCqlBlock.cs
- RadioButton.cs
- WebEventCodes.cs
- AppearanceEditorPart.cs
- DataSourceSelectArguments.cs
- ScriptingScriptResourceHandlerSection.cs
- HttpCachePolicyBase.cs
- GridViewCancelEditEventArgs.cs
- ObjectCacheSettings.cs
- CSharpCodeProvider.cs
- Constraint.cs
- DesignerForm.cs
- ArrayItemValue.cs
- CryptoApi.cs
- TrackBarRenderer.cs
- xml.cs
- UseLicense.cs
- HtmlInputReset.cs
- CodeArrayIndexerExpression.cs
- UIInitializationException.cs
- RequestCacheValidator.cs
- SingleSelectRootGridEntry.cs
- ProfileInfo.cs
- RepeatButtonAutomationPeer.cs
- TransformValueSerializer.cs
- CommonXSendMessage.cs
- Matrix3DConverter.cs
- RequestCacheValidator.cs
- NotificationContext.cs
- ObjectDataProvider.cs
- XsltContext.cs
- SchemaInfo.cs
- FilterElement.cs
- XamlTemplateSerializer.cs
- Span.cs
- ObjectQueryState.cs
- RangeContentEnumerator.cs
- ComponentChangedEvent.cs
- CodeDirectiveCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- PackWebResponse.cs
- DataControlField.cs
- BasicViewGenerator.cs
- EventMappingSettings.cs
- PersonalizationStateQuery.cs
- ProcessInfo.cs
- XMLSchema.cs
- _Win32.cs
- ActivationArguments.cs
- SqlConnection.cs
- PerspectiveCamera.cs
- WindowsTab.cs
- PersistStreamTypeWrapper.cs
- SingleTagSectionHandler.cs
- TextTreeObjectNode.cs
- VirtualizingStackPanel.cs
- Logging.cs
- TextEndOfParagraph.cs
- FindRequestContext.cs
- BamlResourceDeserializer.cs
- DesignerDataView.cs
- Clock.cs
- FlowDocument.cs
- NameTable.cs
- PersonalizationProviderCollection.cs
- PageTheme.cs
- Registration.cs
- GetPageNumberCompletedEventArgs.cs
- BreakRecordTable.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DataGridTextBoxColumn.cs
- CompiledQueryCacheEntry.cs
- SerializationHelper.cs
- ListViewCommandEventArgs.cs
- WorkItem.cs
- QilLiteral.cs
- LifetimeServices.cs
- WorkflowRuntimeServiceElement.cs
- DataGridViewColumnConverter.cs
- HttpConfigurationSystem.cs
- HttpRawResponse.cs