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
- CodeTypeParameter.cs
- DateTimeSerializationSection.cs
- Walker.cs
- ActivityDesignerAccessibleObject.cs
- SqlMethodTransformer.cs
- SettingsSection.cs
- SqlError.cs
- SamlAttribute.cs
- AspNetHostingPermission.cs
- HwndHostAutomationPeer.cs
- FlowLayout.cs
- KnownTypes.cs
- HorizontalAlignConverter.cs
- SmtpReplyReaderFactory.cs
- ProcessInputEventArgs.cs
- NotificationContext.cs
- PeerPresenceInfo.cs
- ScalarOps.cs
- XmlDocumentSurrogate.cs
- DataColumnChangeEvent.cs
- StreamUpgradeProvider.cs
- securitycriticaldataformultiplegetandset.cs
- CultureInfo.cs
- ResourceDescriptionAttribute.cs
- IChannel.cs
- RectIndependentAnimationStorage.cs
- XmlSchemaResource.cs
- OuterGlowBitmapEffect.cs
- PtsCache.cs
- datacache.cs
- DateBoldEvent.cs
- PeerObject.cs
- ResourceProviderFactory.cs
- DataObject.cs
- UserPersonalizationStateInfo.cs
- RootBrowserWindowAutomationPeer.cs
- _emptywebproxy.cs
- TextDecorationUnitValidation.cs
- DtrList.cs
- SemanticValue.cs
- MouseEvent.cs
- TextProperties.cs
- CfgParser.cs
- BindingList.cs
- IResourceProvider.cs
- PtsCache.cs
- DesignerCategoryAttribute.cs
- ParentUndoUnit.cs
- ShaperBuffers.cs
- EnumerableRowCollectionExtensions.cs
- PerformanceCounterPermissionEntry.cs
- CatalogPart.cs
- CaseStatementSlot.cs
- WindowsStatusBar.cs
- GroupJoinQueryOperator.cs
- WindowsRichEditRange.cs
- ImageAttributes.cs
- XPathNodeHelper.cs
- HwndTarget.cs
- TrustLevel.cs
- XmlAnyElementAttribute.cs
- ApplicationProxyInternal.cs
- ComplexTypeEmitter.cs
- SimpleType.cs
- NetworkInformationPermission.cs
- BuilderInfo.cs
- DbParameterCollectionHelper.cs
- HtmlShimManager.cs
- LockCookie.cs
- CaseInsensitiveOrdinalStringComparer.cs
- __Filters.cs
- Assembly.cs
- ApplicationProxyInternal.cs
- LinkedResourceCollection.cs
- SecureEnvironment.cs
- AssemblyFilter.cs
- RuleSettingsCollection.cs
- OSFeature.cs
- DataSetUtil.cs
- HttpPostedFileBase.cs
- CompilerInfo.cs
- XmlElementAttributes.cs
- DependencyProperty.cs
- OdbcConnectionStringbuilder.cs
- HttpProtocolReflector.cs
- ExtenderControl.cs
- ChangesetResponse.cs
- XamlTypeMapper.cs
- PreProcessInputEventArgs.cs
- StyleCollection.cs
- SettingsPropertyValueCollection.cs
- _LocalDataStoreMgr.cs
- IgnoreDeviceFilterElementCollection.cs
- Token.cs
- XmlNode.cs
- CompoundFileStreamReference.cs
- StandardBindingImporter.cs
- HwndHostAutomationPeer.cs
- DiffuseMaterial.cs
- WindowsScroll.cs