Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / FrameworkRichTextComposition.cs / 1305600 / 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
- NameValueSectionHandler.cs
- FloaterBaseParagraph.cs
- PropertyInformationCollection.cs
- ParameterElementCollection.cs
- SeverityFilter.cs
- httpserverutility.cs
- ReceiveSecurityHeader.cs
- SpotLight.cs
- DelayedRegex.cs
- HttpProfileGroupBase.cs
- MILUtilities.cs
- ToolStripDropDown.cs
- FormViewDeletedEventArgs.cs
- PreviewPrintController.cs
- CmsInterop.cs
- CustomCredentialPolicy.cs
- ScriptResourceHandler.cs
- TextEditorThreadLocalStore.cs
- CombinedGeometry.cs
- DataGridViewLinkColumn.cs
- xmlfixedPageInfo.cs
- FilteredAttributeCollection.cs
- WebEventTraceProvider.cs
- SendMessageRecord.cs
- Int16Storage.cs
- _UriTypeConverter.cs
- TextDataBindingHandler.cs
- TextServicesContext.cs
- SerializationFieldInfo.cs
- CatalogZone.cs
- HashFinalRequest.cs
- RayMeshGeometry3DHitTestResult.cs
- ResizeGrip.cs
- Pkcs9Attribute.cs
- UpdatePanelTrigger.cs
- ToolStripContainer.cs
- _LocalDataStoreMgr.cs
- TextTreeFixupNode.cs
- Lease.cs
- Visual3DCollection.cs
- WindowsPen.cs
- DispatcherFrame.cs
- EncodingTable.cs
- DateTimeUtil.cs
- ExchangeUtilities.cs
- ComponentFactoryHelpers.cs
- CreateUserWizardDesigner.cs
- EpmSyndicationContentSerializer.cs
- EntitySetBaseCollection.cs
- PrimitiveXmlSerializers.cs
- SizeFConverter.cs
- OleDbTransaction.cs
- ReferenceService.cs
- SingleAnimation.cs
- StateInitializationDesigner.cs
- OdbcParameterCollection.cs
- TemplateBindingExpressionConverter.cs
- HttpResponseHeader.cs
- BaseDataList.cs
- smtppermission.cs
- ControlCachePolicy.cs
- ScrollChrome.cs
- UidManager.cs
- MetadataSet.cs
- WebAdminConfigurationHelper.cs
- Unit.cs
- EnterpriseServicesHelper.cs
- UTF8Encoding.cs
- Transform3DGroup.cs
- HttpListenerResponse.cs
- NotFiniteNumberException.cs
- AvTraceFormat.cs
- InstallerTypeAttribute.cs
- TraceLog.cs
- HierarchicalDataSourceControl.cs
- ServiceEndpointElementCollection.cs
- BinaryObjectReader.cs
- ExecutedRoutedEventArgs.cs
- ManagementNamedValueCollection.cs
- DrawingBrush.cs
- PaperSource.cs
- XmlNotation.cs
- HyperLink.cs
- ClientUtils.cs
- ClosableStream.cs
- RuleAction.cs
- serverconfig.cs
- _RequestCacheProtocol.cs
- ZipIOLocalFileDataDescriptor.cs
- StringResourceManager.cs
- NotCondition.cs
- HttpTransportSecurity.cs
- WizardSideBarListControlItemEventArgs.cs
- StringAttributeCollection.cs
- NavigationHelper.cs
- Bold.cs
- COM2ExtendedTypeConverter.cs
- XsltLoader.cs
- SoapObjectWriter.cs
- DataTableCollection.cs