Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / FrameworkRichTextComposition.cs / 1305600 / FrameworkRichTextComposition.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: the TextComposition class // // History: // 11/02/2004 : yutakas created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Input; namespace System.Windows.Documents { ////// the Composition class provides input-text/composition event promotion /// public sealed class FrameworkRichTextComposition : FrameworkTextComposition { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal FrameworkRichTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, owner) { } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- ////// The strat position of the result text of the text input. /// public TextPointer ResultStart { get { return _ResultStart == null ? null : (TextPointer)_ResultStart.GetFrozenPointer(LogicalDirection.Backward); } } ////// The end position of the result text of the text input. /// public TextPointer ResultEnd { get { return _ResultEnd == null ? null : (TextPointer)_ResultEnd.GetFrozenPointer(LogicalDirection.Forward); } } ////// The start position of the current composition text. /// public TextPointer CompositionStart { get { return _CompositionStart == null ? null : (TextPointer)_CompositionStart.GetFrozenPointer(LogicalDirection.Backward); } } ////// The start position of the current composition text. /// public TextPointer CompositionEnd { get { return _CompositionEnd == null ? null : (TextPointer)_CompositionEnd.GetFrozenPointer(LogicalDirection.Forward); } } } } // 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: the TextComposition class // // History: // 11/02/2004 : yutakas created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Input; namespace System.Windows.Documents { ////// the Composition class provides input-text/composition event promotion /// public sealed class FrameworkRichTextComposition : FrameworkTextComposition { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal FrameworkRichTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, owner) { } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- ////// The strat position of the result text of the text input. /// public TextPointer ResultStart { get { return _ResultStart == null ? null : (TextPointer)_ResultStart.GetFrozenPointer(LogicalDirection.Backward); } } ////// The end position of the result text of the text input. /// public TextPointer ResultEnd { get { return _ResultEnd == null ? null : (TextPointer)_ResultEnd.GetFrozenPointer(LogicalDirection.Forward); } } ////// The start position of the current composition text. /// public TextPointer CompositionStart { get { return _CompositionStart == null ? null : (TextPointer)_CompositionStart.GetFrozenPointer(LogicalDirection.Backward); } } ////// The start position of the current composition text. /// public TextPointer CompositionEnd { get { return _CompositionEnd == null ? null : (TextPointer)_CompositionEnd.GetFrozenPointer(LogicalDirection.Forward); } } } } // 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
- TypeResolvingOptions.cs
- SecurityHelper.cs
- VSWCFServiceContractGenerator.cs
- WebServicesDescriptionAttribute.cs
- ComponentConverter.cs
- ToolStripDropDownMenu.cs
- IxmlLineInfo.cs
- GeneralTransform3DTo2D.cs
- XamlTreeBuilderBamlRecordWriter.cs
- SubpageParagraph.cs
- EventLogPermissionEntryCollection.cs
- FileFormatException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ScrollItemPatternIdentifiers.cs
- ConnectionManagementElementCollection.cs
- TextFindEngine.cs
- CustomWebEventKey.cs
- ServiceHostingEnvironment.cs
- Decoder.cs
- EventlogProvider.cs
- TypeBrowserDialog.cs
- EventDescriptorCollection.cs
- EncryptedPackageFilter.cs
- Normalization.cs
- OleDbReferenceCollection.cs
- OleDbDataAdapter.cs
- RootBrowserWindowAutomationPeer.cs
- ConfigUtil.cs
- NameValueSectionHandler.cs
- SHA1Managed.cs
- Switch.cs
- RotateTransform.cs
- HandoffBehavior.cs
- CollectionsUtil.cs
- GridSplitterAutomationPeer.cs
- InteropTrackingRecord.cs
- Evidence.cs
- ColumnWidthChangedEvent.cs
- RequestCacheEntry.cs
- RSACryptoServiceProvider.cs
- RegexWorker.cs
- DataSourceGeneratorException.cs
- Section.cs
- ExceptionUtil.cs
- ExpressionsCollectionConverter.cs
- InternalCache.cs
- AspNetSynchronizationContext.cs
- FormsAuthenticationUser.cs
- SqlBulkCopyColumnMapping.cs
- WebPartConnectionsEventArgs.cs
- FontFamilyConverter.cs
- MiniCustomAttributeInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- WsdlContractConversionContext.cs
- AutomationPropertyInfo.cs
- StateBag.cs
- ElementProxy.cs
- AsyncPostBackErrorEventArgs.cs
- ProbeMatchesMessage11.cs
- TextDecorationCollectionConverter.cs
- ContentDefinition.cs
- Rect3DConverter.cs
- SqlStream.cs
- RecommendedAsConfigurableAttribute.cs
- storepermission.cs
- Panel.cs
- AuthStoreRoleProvider.cs
- WebSysDisplayNameAttribute.cs
- MessageEncodingBindingElementImporter.cs
- MethodToken.cs
- ItemChangedEventArgs.cs
- WSHttpBinding.cs
- ADMembershipUser.cs
- TabControlEvent.cs
- EditorPartDesigner.cs
- RelationshipDetailsRow.cs
- ImportDesigner.xaml.cs
- KeyedCollection.cs
- DependencyPropertyChangedEventArgs.cs
- DependsOnAttribute.cs
- smtppermission.cs
- TemplateControlCodeDomTreeGenerator.cs
- NeutralResourcesLanguageAttribute.cs
- CodeMemberField.cs
- Underline.cs
- XmlDataSource.cs
- DynamicUpdateCommand.cs
- ControlBuilder.cs
- EncodingDataItem.cs
- OdbcRowUpdatingEvent.cs
- CodeDirectiveCollection.cs
- ToolStripComboBox.cs
- OdbcParameter.cs
- StylusTouchDevice.cs
- CommandField.cs
- AccessKeyManager.cs
- NonBatchDirectoryCompiler.cs
- InternalException.cs
- TextTreeInsertElementUndoUnit.cs
- DbgUtil.cs