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
- DataFieldEditor.cs
- RightsManagementEncryptedStream.cs
- RegionData.cs
- UnsafeMethods.cs
- ExceptionUtil.cs
- DataControlFieldCell.cs
- CodeCommentStatementCollection.cs
- FixedDSBuilder.cs
- WebAdminConfigurationHelper.cs
- InstanceCreationEditor.cs
- ResourceProperty.cs
- PropertyOrder.cs
- SelectionUIService.cs
- ConnectionManagementElement.cs
- SqlNotificationEventArgs.cs
- ReceiveSecurityHeaderElementManager.cs
- KnownTypesHelper.cs
- Binding.cs
- ValueExpressions.cs
- EntityObject.cs
- DefaultAsyncDataDispatcher.cs
- InputDevice.cs
- MulticastDelegate.cs
- ProxyRpc.cs
- NetNamedPipeBinding.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SafeTokenHandle.cs
- StorageEndPropertyMapping.cs
- ExpressionBuilder.cs
- SqlCacheDependency.cs
- FillRuleValidation.cs
- ToolStripOverflow.cs
- OracleConnectionStringBuilder.cs
- XmlNamespaceManager.cs
- PtsCache.cs
- TrackingWorkflowEventArgs.cs
- ObjectDisposedException.cs
- VisualStyleTypesAndProperties.cs
- ChameleonKey.cs
- DefaultAssemblyResolver.cs
- AppliesToBehaviorDecisionTable.cs
- SystemException.cs
- LightweightEntityWrapper.cs
- ContainerVisual.cs
- MasterPage.cs
- TypedReference.cs
- InputGestureCollection.cs
- HashAlgorithm.cs
- WrappedOptions.cs
- dataprotectionpermission.cs
- OracleMonthSpan.cs
- ControlPager.cs
- MSAANativeProvider.cs
- SchemaImporterExtensionsSection.cs
- CompilationRelaxations.cs
- EntityDataSourceWizardForm.cs
- ImageListStreamer.cs
- ValueUnavailableException.cs
- CssStyleCollection.cs
- InfiniteTimeSpanConverter.cs
- ModuleConfigurationInfo.cs
- FixedTextBuilder.cs
- TrackingServices.cs
- WebSysDisplayNameAttribute.cs
- TypeElement.cs
- ProfileServiceManager.cs
- SwitchElementsCollection.cs
- XmlRootAttribute.cs
- XmlMapping.cs
- DesignerMetadata.cs
- SqlDependencyListener.cs
- UnsafeNativeMethodsPenimc.cs
- IdnMapping.cs
- AnnotationResourceChangedEventArgs.cs
- InternalBase.cs
- ListManagerBindingsCollection.cs
- ToolStripSplitStackLayout.cs
- TextSearch.cs
- CodeArrayCreateExpression.cs
- SQLInt32.cs
- DataAdapter.cs
- FormViewModeEventArgs.cs
- SelectionHighlightInfo.cs
- CodeGen.cs
- StringToken.cs
- ResourceManager.cs
- HttpRuntimeSection.cs
- DataBindingExpressionBuilder.cs
- TogglePattern.cs
- AnnotationDocumentPaginator.cs
- MDIWindowDialog.cs
- AssertValidation.cs
- ClosableStream.cs
- MessageBodyMemberAttribute.cs
- SerializationFieldInfo.cs
- FormsAuthenticationConfiguration.cs
- StorageMappingFragment.cs
- PocoEntityKeyStrategy.cs
- CacheHelper.cs
- CancellationTokenRegistration.cs