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
- OneWayChannelListener.cs
- Encoder.cs
- WebPartConnectionsCancelVerb.cs
- LinqTreeNodeEvaluator.cs
- StoreContentChangedEventArgs.cs
- RangeValueProviderWrapper.cs
- util.cs
- RegexMatch.cs
- SmtpException.cs
- ScriptRef.cs
- SchemaTableOptionalColumn.cs
- FrameAutomationPeer.cs
- CrossSiteScriptingValidation.cs
- ServiceSecurityContext.cs
- PointKeyFrameCollection.cs
- KeyValueSerializer.cs
- ReturnType.cs
- SegmentInfo.cs
- DbConnectionPoolOptions.cs
- DataPagerFieldCollection.cs
- WebBrowserNavigatingEventHandler.cs
- Configuration.cs
- FileDialogCustomPlacesCollection.cs
- NameNode.cs
- SpeechAudioFormatInfo.cs
- XmlChildNodes.cs
- XsltContext.cs
- _UncName.cs
- ButtonFieldBase.cs
- SecurityTokenProvider.cs
- StackBuilderSink.cs
- XmlSecureResolver.cs
- SelectManyQueryOperator.cs
- Literal.cs
- ArrangedElementCollection.cs
- OpenTypeLayoutCache.cs
- Activator.cs
- AccessControlList.cs
- ExecutorLocksHeldException.cs
- CodeMemberProperty.cs
- ObjectStateManager.cs
- OutputCacheSettings.cs
- DrawingState.cs
- MethodCallConverter.cs
- ProjectionPruner.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DecimalConverter.cs
- DesignerSerializationOptionsAttribute.cs
- WebPartZone.cs
- ApplicationSecurityInfo.cs
- SizeConverter.cs
- HtmlLink.cs
- FunctionCommandText.cs
- UnitControl.cs
- KeyEvent.cs
- LifetimeServices.cs
- TagMapInfo.cs
- TypedTableBaseExtensions.cs
- Utils.cs
- RoleManagerModule.cs
- CapiHashAlgorithm.cs
- ValidatorCompatibilityHelper.cs
- namescope.cs
- MetaType.cs
- OrderedDictionaryStateHelper.cs
- TreeViewImageKeyConverter.cs
- QueryResult.cs
- URLString.cs
- SignatureToken.cs
- CheckStoreFileValidityRequest.cs
- InputProviderSite.cs
- ConnectionPoint.cs
- TypedTableBaseExtensions.cs
- GridView.cs
- EdmToObjectNamespaceMap.cs
- RadioButtonAutomationPeer.cs
- SubstitutionList.cs
- Encoding.cs
- TextRangeEditLists.cs
- SerializationSectionGroup.cs
- XPathArrayIterator.cs
- Menu.cs
- TreeNodeCollection.cs
- CacheMode.cs
- SqlNodeAnnotations.cs
- CompilerInfo.cs
- StrokeCollectionConverter.cs
- Size3DConverter.cs
- BitmapEffectvisualstate.cs
- CustomServiceCredentials.cs
- IntAverageAggregationOperator.cs
- KeyboardDevice.cs
- PropertyDescriptors.cs
- AccessText.cs
- DateTime.cs
- CellParagraph.cs
- CallContext.cs
- MappingMetadataHelper.cs
- SystemIPGlobalProperties.cs
- TextTreeText.cs