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
- ListViewDeletedEventArgs.cs
- DrawingContext.cs
- SqlPersonalizationProvider.cs
- FrugalList.cs
- ComboBoxItem.cs
- Serializer.cs
- DefaultObjectMappingItemCollection.cs
- TabControl.cs
- ClockController.cs
- CanExecuteRoutedEventArgs.cs
- TemplatedEditableDesignerRegion.cs
- ProcessHostConfigUtils.cs
- ProxyWebPartManager.cs
- AppliedDeviceFiltersEditor.cs
- HttpCachePolicyWrapper.cs
- RecommendedAsConfigurableAttribute.cs
- View.cs
- CryptoHandle.cs
- _NetRes.cs
- ClientTargetSection.cs
- ServiceMetadataPublishingElement.cs
- BufferModeSettings.cs
- TextServicesCompartmentEventSink.cs
- CloudCollection.cs
- PackagingUtilities.cs
- EnlistmentTraceIdentifier.cs
- PathSegment.cs
- Attributes.cs
- InkCanvasSelectionAdorner.cs
- XPathAxisIterator.cs
- WebRequestModuleElement.cs
- WebBrowserUriTypeConverter.cs
- TcpTransportSecurityElement.cs
- HttpException.cs
- QueryPrefixOp.cs
- PropertyRef.cs
- List.cs
- DbProviderServices.cs
- IEnumerable.cs
- SecurityContextSecurityToken.cs
- RemoteWebConfigurationHostStream.cs
- Dump.cs
- StringConcat.cs
- GeneralTransform.cs
- SpellerInterop.cs
- InstalledFontCollection.cs
- figurelength.cs
- OutputCacheSettingsSection.cs
- MessageDecoder.cs
- TempEnvironment.cs
- RoleManagerSection.cs
- TextTreeRootTextBlock.cs
- HttpGetProtocolImporter.cs
- DeadLetterQueue.cs
- StaticContext.cs
- ObjectToken.cs
- RoutedEventHandlerInfo.cs
- DataPagerFieldItem.cs
- WebServiceParameterData.cs
- DataGridCaption.cs
- FunctionDescription.cs
- SharedStatics.cs
- xdrvalidator.cs
- documentsequencetextpointer.cs
- SerTrace.cs
- XmlAtomicValue.cs
- ConfigXmlAttribute.cs
- ObjectParameterCollection.cs
- DBParameter.cs
- BackStopAuthenticationModule.cs
- SkewTransform.cs
- DeflateStreamAsyncResult.cs
- PassportAuthentication.cs
- MethodAccessException.cs
- PersonalizationEntry.cs
- ValidatingPropertiesEventArgs.cs
- AnonymousIdentificationSection.cs
- EncodingInfo.cs
- PerformanceCounterLib.cs
- Decorator.cs
- TreeBuilder.cs
- Model3DGroup.cs
- InstanceDataCollectionCollection.cs
- CodeConditionStatement.cs
- JpegBitmapEncoder.cs
- RequestCache.cs
- MemberDomainMap.cs
- ArglessEventHandlerProxy.cs
- CacheEntry.cs
- CompilerLocalReference.cs
- DesignerProperties.cs
- ConfigurationManagerInternalFactory.cs
- ResourceProviderFactory.cs
- XmlRawWriter.cs
- ListViewEditEventArgs.cs
- CheckBoxBaseAdapter.cs
- RequestBringIntoViewEventArgs.cs
- SvcMapFileSerializer.cs
- BitmapSizeOptions.cs
- BufferedGraphicsManager.cs