Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / FrameworkRichTextComposition.cs / 1 / 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
- ProtocolElement.cs
- DisableDpiAwarenessAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- XmlRawWriter.cs
- XPathMessageFilterElement.cs
- TabPage.cs
- XPathMessageFilter.cs
- ScriptReferenceEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- EdmFunction.cs
- MatrixValueSerializer.cs
- OptionUsage.cs
- WebServiceBindingAttribute.cs
- SetterBase.cs
- OptimisticConcurrencyException.cs
- CodeLabeledStatement.cs
- AssociationEndMember.cs
- BoundColumn.cs
- Oid.cs
- ToolStripTextBox.cs
- SqlIdentifier.cs
- BidOverLoads.cs
- SocketPermission.cs
- HandlerFactoryWrapper.cs
- ContextMenu.cs
- SignalGate.cs
- RoleManagerSection.cs
- Variant.cs
- SemanticResolver.cs
- PropertyGridView.cs
- SystemPens.cs
- ExpressionLexer.cs
- DeclaredTypeElement.cs
- TypedReference.cs
- TextTreeExtractElementUndoUnit.cs
- _AutoWebProxyScriptHelper.cs
- WorkflowInspectionServices.cs
- Cell.cs
- StubHelpers.cs
- BulletChrome.cs
- FormatException.cs
- PreloadHost.cs
- MethodRental.cs
- XmlTextEncoder.cs
- EntityDataSourceDataSelection.cs
- Point3DAnimationBase.cs
- Row.cs
- ExtendedProtectionPolicy.cs
- TagMapCollection.cs
- OracleConnectionFactory.cs
- DataControlLinkButton.cs
- WebConfigurationHost.cs
- RequestCachingSection.cs
- QilValidationVisitor.cs
- RelationshipDetailsCollection.cs
- SendSecurityHeaderElementContainer.cs
- DataGridViewRowHeaderCell.cs
- ByteStream.cs
- AutomationEventArgs.cs
- HScrollProperties.cs
- XhtmlBasicCommandAdapter.cs
- ViewEventArgs.cs
- ProxyGenerationError.cs
- IpcChannelHelper.cs
- StringFunctions.cs
- InputBinder.cs
- ImportDesigner.xaml.cs
- PathFigure.cs
- DynamicResourceExtensionConverter.cs
- RegionInfo.cs
- FixedFindEngine.cs
- HighlightComponent.cs
- BasicExpandProvider.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- FormsAuthenticationUserCollection.cs
- DataGridColumnHeaderAutomationPeer.cs
- HttpClientCertificate.cs
- ValueOfAction.cs
- TextDecorationCollection.cs
- CodeAttributeDeclaration.cs
- XmlTextReaderImplHelpers.cs
- PolicyStatement.cs
- ComponentCache.cs
- CodeGenerator.cs
- Directory.cs
- FixedDocument.cs
- FeatureManager.cs
- RuntimeEnvironment.cs
- Transform.cs
- MatrixConverter.cs
- SqlNodeAnnotations.cs
- peersecuritysettings.cs
- ReferentialConstraint.cs
- Expression.cs
- assemblycache.cs
- Listbox.cs
- DeleteMemberBinder.cs
- ObjectSecurity.cs
- BinHexEncoding.cs
- CodeMemberProperty.cs