Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / TextCompositionEventArgs.cs / 1305600 / TextCompositionEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: TextCompositionEventArgs class // // History: // 11/19/2003 : yutakas 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. //---------------------------------------------------------------------------- // // // Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: TextCompositionEventArgs class // // History: // 11/19/2003 : yutakas 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
- ProxyWebPart.cs
- WebEventTraceProvider.cs
- ReadWriteObjectLock.cs
- ColumnHeader.cs
- WindowsFormsHelpers.cs
- AttachedPropertyMethodSelector.cs
- ResponseStream.cs
- CacheModeValueSerializer.cs
- InputMethod.cs
- PropertyItem.cs
- Button.cs
- TextTreeRootTextBlock.cs
- RequiredFieldValidator.cs
- AsynchronousChannel.cs
- XmlWhitespace.cs
- RowUpdatedEventArgs.cs
- Ref.cs
- ExpandedWrapper.cs
- SqlConnectionStringBuilder.cs
- GeometryCombineModeValidation.cs
- QuaternionAnimationBase.cs
- ServiceErrorHandler.cs
- SecurityKeyIdentifierClause.cs
- EventSetter.cs
- FillErrorEventArgs.cs
- Quaternion.cs
- StaticFileHandler.cs
- PagerSettings.cs
- TreeViewAutomationPeer.cs
- GorillaCodec.cs
- WebPartEventArgs.cs
- ScriptModule.cs
- PersistenceException.cs
- TlsSspiNegotiation.cs
- AppSettingsSection.cs
- TcpConnectionPoolSettings.cs
- IPHostEntry.cs
- VersionedStream.cs
- ScopelessEnumAttribute.cs
- BaseCollection.cs
- PropertySourceInfo.cs
- StructuredTypeInfo.cs
- TraceEventCache.cs
- ActivityCollectionMarkupSerializer.cs
- ServerReliableChannelBinder.cs
- CellParaClient.cs
- SqlDependencyListener.cs
- LoginUtil.cs
- BinaryObjectWriter.cs
- PrintingPermission.cs
- CatalogPartCollection.cs
- ClientData.cs
- XmlDictionaryString.cs
- OutOfMemoryException.cs
- StyleXamlTreeBuilder.cs
- _SSPIWrapper.cs
- StringHandle.cs
- ConvertersCollection.cs
- MethodSignatureGenerator.cs
- WebPartHelpVerb.cs
- PageSetupDialog.cs
- PixelFormatConverter.cs
- PagesChangedEventArgs.cs
- DataGridRowDetailsEventArgs.cs
- QueryGenerator.cs
- PagedDataSource.cs
- SecurityUtils.cs
- URIFormatException.cs
- Typography.cs
- EventSourceCreationData.cs
- EncodingDataItem.cs
- StoreItemCollection.Loader.cs
- BindableAttribute.cs
- PropertyGeneratedEventArgs.cs
- LineServices.cs
- Comparer.cs
- DataGridViewRowEventArgs.cs
- GenericAuthenticationEventArgs.cs
- Renderer.cs
- SurrogateDataContract.cs
- ComponentRenameEvent.cs
- AutoCompleteStringCollection.cs
- MediaContext.cs
- EventHandlerService.cs
- ValidatingPropertiesEventArgs.cs
- XMLSchema.cs
- SecureStringHasher.cs
- MonitorWrapper.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Point3DCollectionValueSerializer.cs
- RequestCacheValidator.cs
- TextBoxDesigner.cs
- ClassicBorderDecorator.cs
- RuntimeArgumentHandle.cs
- TypeConverter.cs
- Atom10FormatterFactory.cs
- NamedObject.cs
- DbConnectionPoolOptions.cs
- TemplatePropertyEntry.cs
- Calendar.cs