Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ServiceDescriptionReflector.cs
- Convert.cs
- EasingKeyFrames.cs
- InternalConfigRoot.cs
- Speller.cs
- AssemblyNameProxy.cs
- CqlLexerHelpers.cs
- ClipboardData.cs
- DefaultDiscoveryServiceExtension.cs
- DataSourceControl.cs
- SeekStoryboard.cs
- ComponentEditorPage.cs
- SHA512Managed.cs
- ContainerTracking.cs
- Identifier.cs
- ApplicationServicesHostFactory.cs
- GlobalizationSection.cs
- CodeDomSerializationProvider.cs
- DesignerCategoryAttribute.cs
- DetailsViewInsertedEventArgs.cs
- SqlWriter.cs
- VirtualPathProvider.cs
- TimeStampChecker.cs
- DependsOnAttribute.cs
- BuildTopDownAttribute.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- MetadataCacheItem.cs
- DateTimeHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- AuthenticateEventArgs.cs
- ParameterCollection.cs
- AxisAngleRotation3D.cs
- ContainerFilterService.cs
- precedingquery.cs
- RowToFieldTransformer.cs
- IgnoreSectionHandler.cs
- PenLineJoinValidation.cs
- TemplateBuilder.cs
- SamlDoNotCacheCondition.cs
- ComAdminWrapper.cs
- RecognizedWordUnit.cs
- ToolStripItemCollection.cs
- UnsafePeerToPeerMethods.cs
- MobileUserControl.cs
- GroupBoxAutomationPeer.cs
- CheckPair.cs
- SectionInformation.cs
- UnsafeNativeMethods.cs
- ItemContainerGenerator.cs
- BamlResourceDeserializer.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- EntityContainerEntitySetDefiningQuery.cs
- Grant.cs
- TableParagraph.cs
- BehaviorEditorPart.cs
- GroupItemAutomationPeer.cs
- ProtocolViolationException.cs
- SymbolEqualComparer.cs
- ObjectDisposedException.cs
- ParenExpr.cs
- ReferenceSchema.cs
- SchemaElement.cs
- PerformanceCounterPermissionAttribute.cs
- LineServicesCallbacks.cs
- WindowsNonControl.cs
- FirstQueryOperator.cs
- XmlNodeComparer.cs
- PersonalizablePropertyEntry.cs
- X509ServiceCertificateAuthentication.cs
- ImageProxy.cs
- ExpressionBuilder.cs
- PaintValueEventArgs.cs
- OdbcPermission.cs
- PopupRootAutomationPeer.cs
- SoapServerMethod.cs
- ReachFixedDocumentSerializer.cs
- MasterPageCodeDomTreeGenerator.cs
- ZipIORawDataFileBlock.cs
- EventRoute.cs
- FormViewPageEventArgs.cs
- ThreadStartException.cs
- StreamInfo.cs
- SoapConverter.cs
- LazyTextWriterCreator.cs
- _NetRes.cs
- TargetInvocationException.cs
- DictationGrammar.cs
- NestPullup.cs
- XsltLibrary.cs
- GroupItem.cs
- InputMethodStateChangeEventArgs.cs
- KeyPullup.cs
- Root.cs
- webbrowsersite.cs
- DetailsViewPageEventArgs.cs
- ControlEvent.cs
- ListMarkerSourceInfo.cs
- DragDrop.cs
- TranslateTransform.cs
- SqlMethods.cs