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
- DataGridPageChangedEventArgs.cs
- RoutedEventArgs.cs
- AttributeData.cs
- TableLayoutColumnStyleCollection.cs
- DocumentSchemaValidator.cs
- SqlTypesSchemaImporter.cs
- QuaternionAnimationBase.cs
- BuildProviderUtils.cs
- TypeConverterHelper.cs
- BookmarkEventArgs.cs
- WebPartCatalogAddVerb.cs
- XmlIgnoreAttribute.cs
- GridViewRow.cs
- SqlReorderer.cs
- PassportAuthenticationModule.cs
- MILUtilities.cs
- ListControl.cs
- TypeSystemProvider.cs
- XamlFilter.cs
- FixedPage.cs
- VectorCollection.cs
- GrammarBuilderWildcard.cs
- TdsEnums.cs
- EmptyReadOnlyDictionaryInternal.cs
- SerializationEventsCache.cs
- ImpersonateTokenRef.cs
- SubstitutionList.cs
- HtmlTable.cs
- ValueUtilsSmi.cs
- StorageEntitySetMapping.cs
- RC2CryptoServiceProvider.cs
- WpfXamlType.cs
- ModelToObjectValueConverter.cs
- TimeStampChecker.cs
- Visitors.cs
- PermissionSetEnumerator.cs
- ErrorHandlingAcceptor.cs
- CompilerTypeWithParams.cs
- GrammarBuilderWildcard.cs
- Menu.cs
- DBCommandBuilder.cs
- OLEDB_Util.cs
- JoinElimination.cs
- Matrix3D.cs
- ProxyAttribute.cs
- CryptoHandle.cs
- RadioButtonBaseAdapter.cs
- TextServicesDisplayAttribute.cs
- Bits.cs
- ClientSideQueueItem.cs
- ToolStripEditorManager.cs
- PathGeometry.cs
- ObjectMemberMapping.cs
- XmlValidatingReader.cs
- UnionCodeGroup.cs
- Metadata.cs
- RequestedSignatureDialog.cs
- MaterializeFromAtom.cs
- HtmlInputText.cs
- AccessDataSource.cs
- XmlSchemaComplexContent.cs
- ScaleTransform3D.cs
- ThicknessKeyFrameCollection.cs
- LoginUtil.cs
- EntityModelBuildProvider.cs
- CqlErrorHelper.cs
- X509Utils.cs
- MetadataItemEmitter.cs
- PropertyDescriptorCollection.cs
- StylusPointDescription.cs
- SiteMapNodeItem.cs
- SystemIPInterfaceProperties.cs
- TouchFrameEventArgs.cs
- ParameterToken.cs
- ZeroOpNode.cs
- ReflectPropertyDescriptor.cs
- ContainerVisual.cs
- bindurihelper.cs
- RangeBase.cs
- Clock.cs
- NamedPipeTransportSecurityElement.cs
- MarshalByRefObject.cs
- OutputScope.cs
- counter.cs
- WorkflowServiceHost.cs
- SafeLibraryHandle.cs
- ToolBarPanel.cs
- TextDecorationCollection.cs
- ByteArrayHelperWithString.cs
- HttpApplication.cs
- DocumentReference.cs
- HttpContext.cs
- SyntaxCheck.cs
- UnsafeCollabNativeMethods.cs
- IIS7UserPrincipal.cs
- DesignSurfaceEvent.cs
- XmlBuffer.cs
- QuaternionAnimationBase.cs
- SafeEventLogReadHandle.cs
- TypeBuilder.cs