Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / TextCompositionEventArgs.cs / 1 / TextCompositionEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: TextCompositionEventArgs class // // History: // 11/19/2003 : [....] created // //--------------------------------------------------------------------------- using System; namespace System.Windows.Input { ////// The TextCompositionEventArgs class contains a text representation of /// input. /// public class TextCompositionEventArgs : InputEventArgs { ////// Constructs an instance of the TextInputEventArgs class. /// /// /// The input device to associate with this event. /// /// /// The TextComposition object that contains the composition text and the composition state. /// public TextCompositionEventArgs(InputDevice inputDevice, TextComposition composition) : base(inputDevice, Environment.TickCount) { if (composition == null) { throw new ArgumentNullException("composition"); } _composition = composition; } ////// The text composition that was provided. /// ///public TextComposition TextComposition { get {return _composition;} } /// /// The result text that was provided as input. /// ///public string Text { get {return _composition.Text;} } /// /// The result system text that was provided as input. /// ///public string SystemText { get {return _composition.SystemText;} } /// /// The result control text that was provided as input. /// ///public string ControlText { get {return _composition.ControlText;} } /// /// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// ///protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { TextCompositionEventHandler handler = (TextCompositionEventHandler) genericHandler; handler(genericTarget, this); } // The target TextComposition object of this event. private TextComposition _composition; } } // 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
- DataGrid.cs
- RichTextBoxConstants.cs
- TdsRecordBufferSetter.cs
- ServiceOperationParameter.cs
- GetPageCompletedEventArgs.cs
- ResourceAttributes.cs
- Activator.cs
- InfoCardMetadataExchangeClient.cs
- LazyTextWriterCreator.cs
- Authorization.cs
- FormViewDeletedEventArgs.cs
- CompilationSection.cs
- HtmlShim.cs
- CharacterMetricsDictionary.cs
- SqlProviderManifest.cs
- ListViewSelectEventArgs.cs
- WebZone.cs
- localization.cs
- Int64Converter.cs
- objectquery_tresulttype.cs
- streamingZipPartStream.cs
- PathFigure.cs
- TrackingLocationCollection.cs
- ToolboxItemCollection.cs
- AttributedMetaModel.cs
- ManualResetEventSlim.cs
- IPHostEntry.cs
- GroupBoxRenderer.cs
- DesignerValidationSummaryAdapter.cs
- RoleService.cs
- EarlyBoundInfo.cs
- ImageField.cs
- Process.cs
- SecurityTokenAuthenticator.cs
- XpsFont.cs
- SamlAuthorizationDecisionStatement.cs
- WebContext.cs
- PromptBuilder.cs
- Timer.cs
- Subtree.cs
- RightNameExpirationInfoPair.cs
- MarkupExtensionSerializer.cs
- WorkingDirectoryEditor.cs
- CharEntityEncoderFallback.cs
- UnsafeNativeMethods.cs
- GZipStream.cs
- AxisAngleRotation3D.cs
- CompositeActivityTypeDescriptorProvider.cs
- BoundPropertyEntry.cs
- PersistenceProviderElement.cs
- Binding.cs
- DescendentsWalkerBase.cs
- CollectionChangedEventManager.cs
- LinqDataSourceUpdateEventArgs.cs
- StateInitializationDesigner.cs
- BaseHashHelper.cs
- AutomationElement.cs
- AuditLogLocation.cs
- DataSourceControlBuilder.cs
- DataBoundControlAdapter.cs
- XmlSchemaNotation.cs
- ParameterModifier.cs
- _ProxyRegBlob.cs
- SvcMapFileSerializer.cs
- DoubleAnimation.cs
- ObjectSet.cs
- CaseStatement.cs
- RangeValuePatternIdentifiers.cs
- TextSchema.cs
- MetadataPropertyAttribute.cs
- SymbolType.cs
- TreeNodeCollection.cs
- DSASignatureFormatter.cs
- TogglePattern.cs
- EventLogPermissionEntry.cs
- SQLMoney.cs
- FieldDescriptor.cs
- IISUnsafeMethods.cs
- DispatcherExceptionFilterEventArgs.cs
- VariantWrapper.cs
- BinarySerializer.cs
- Quaternion.cs
- HwndAppCommandInputProvider.cs
- DataViewSetting.cs
- RectAnimationUsingKeyFrames.cs
- Convert.cs
- DrawingContextWalker.cs
- PermissionAttributes.cs
- AssociatedControlConverter.cs
- WeakKeyDictionary.cs
- PagedDataSource.cs
- PostBackOptions.cs
- __FastResourceComparer.cs
- TabPage.cs
- DetailsView.cs
- InstanceDescriptor.cs
- ObjectTag.cs
- EntityDataSourceMemberPath.cs
- TdsParserStateObject.cs
- SettingsPropertyValueCollection.cs