Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DocumentSchemaValidator.cs
- InkCanvasFeedbackAdorner.cs
- UriParserTemplates.cs
- TextServicesLoader.cs
- MethodRental.cs
- StartUpEventArgs.cs
- XmlNamespaceMappingCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- SortFieldComparer.cs
- SwitchLevelAttribute.cs
- LineSegment.cs
- BamlLocalizabilityResolver.cs
- QueuePathEditor.cs
- WmpBitmapEncoder.cs
- OleDbException.cs
- DbConnectionOptions.cs
- LinqDataSourceHelper.cs
- VBIdentifierTrimConverter.cs
- HttpContext.cs
- XmlSchemaException.cs
- AddingNewEventArgs.cs
- HiddenFieldDesigner.cs
- DataGridViewBand.cs
- CompositeActivityValidator.cs
- DataGridTableCollection.cs
- ScrollPattern.cs
- TabletCollection.cs
- XmlIncludeAttribute.cs
- Exception.cs
- LinqDataSourceUpdateEventArgs.cs
- VectorKeyFrameCollection.cs
- UriWriter.cs
- SqlDataSourceConfigureSelectPanel.cs
- GradientBrush.cs
- HttpRuntime.cs
- FeatureManager.cs
- StickyNoteHelper.cs
- Avt.cs
- ValidationError.cs
- XamlSerializationHelper.cs
- ListenerElementsCollection.cs
- VirtualizingPanel.cs
- EventTask.cs
- DataBindingCollection.cs
- SoapObjectWriter.cs
- ZoneMembershipCondition.cs
- UnknownBitmapDecoder.cs
- BaseValidatorDesigner.cs
- SqlMethods.cs
- WebPartCollection.cs
- SqlServer2KCompatibilityCheck.cs
- CacheDependency.cs
- ApplicationDirectoryMembershipCondition.cs
- Models.cs
- XmlTextWriter.cs
- AstTree.cs
- CodeRemoveEventStatement.cs
- SelectionEditingBehavior.cs
- BitmapEffectDrawingContextWalker.cs
- Polyline.cs
- WebPartVerbsEventArgs.cs
- TdsParserSessionPool.cs
- LedgerEntryCollection.cs
- X509SecurityTokenProvider.cs
- RectIndependentAnimationStorage.cs
- BinaryOperationBinder.cs
- MarginsConverter.cs
- MethodToken.cs
- FileSystemInfo.cs
- ValueConversionAttribute.cs
- RunWorkerCompletedEventArgs.cs
- ExpressionBuilder.cs
- StrokeCollectionDefaultValueFactory.cs
- SendParametersContent.cs
- CacheOutputQuery.cs
- RelationshipNavigation.cs
- FormViewCommandEventArgs.cs
- ConfigurationStrings.cs
- RenderingEventArgs.cs
- TemplatePropertyEntry.cs
- ServiceOperationHelpers.cs
- BamlStream.cs
- TCPClient.cs
- ApplicationInfo.cs
- InstancePersistenceException.cs
- Thumb.cs
- SystemWebExtensionsSectionGroup.cs
- StylusPointDescription.cs
- SemanticResultKey.cs
- PeerName.cs
- EventMappingSettings.cs
- BinarySerializer.cs
- StreamGeometry.cs
- CookieParameter.cs
- figurelengthconverter.cs
- ToolBarTray.cs
- ContainerParagraph.cs
- SecurityTokenResolver.cs
- RootBuilder.cs
- XamlGridLengthSerializer.cs