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
- DeviceContexts.cs
- CharAnimationBase.cs
- WithParamAction.cs
- SqlOuterApplyReducer.cs
- ObjectKeyFrameCollection.cs
- PropertyGridView.cs
- ScriptControlDescriptor.cs
- InvokeHandlers.cs
- ClientFormsAuthenticationCredentials.cs
- SourceInterpreter.cs
- Popup.cs
- grammarelement.cs
- WebPartCollection.cs
- XamlFilter.cs
- AnimationLayer.cs
- ControlPropertyNameConverter.cs
- PropertyEmitter.cs
- _AuthenticationState.cs
- PagerSettings.cs
- HtmlElement.cs
- GeneratedContractType.cs
- LogicalExpr.cs
- DBSchemaRow.cs
- ServiceNameElement.cs
- XmlSchemaAttribute.cs
- ApplicationSecurityManager.cs
- PerformanceCounterManager.cs
- GenericEnumerator.cs
- BmpBitmapDecoder.cs
- HtmlInputCheckBox.cs
- Tuple.cs
- NGCSerializationManager.cs
- DataGridViewLinkColumn.cs
- Models.cs
- TreeViewImageKeyConverter.cs
- CompressedStack.cs
- _TransmitFileOverlappedAsyncResult.cs
- Bitmap.cs
- ApplicationActivator.cs
- DiscoveryEndpointElement.cs
- UserCancellationException.cs
- ToolStripHighContrastRenderer.cs
- Pts.cs
- RoleManagerSection.cs
- TimeSpanStorage.cs
- UdpDiscoveryEndpoint.cs
- AtomEntry.cs
- BuildProviderCollection.cs
- EventToken.cs
- TextBox.cs
- ResourcesBuildProvider.cs
- ExpressionConverter.cs
- Viewport3DVisual.cs
- ModifierKeysConverter.cs
- XsltLoader.cs
- UnionExpr.cs
- Fonts.cs
- WebBrowserHelper.cs
- ListViewInsertionMark.cs
- NativeMethods.cs
- Condition.cs
- DisplayToken.cs
- DataServiceSaveChangesEventArgs.cs
- PageThemeBuildProvider.cs
- VirtualDirectoryMapping.cs
- controlskin.cs
- DynamicScriptObject.cs
- LinkUtilities.cs
- x509utils.cs
- MemberDescriptor.cs
- SystemFonts.cs
- NativeCppClassAttribute.cs
- ConfigXmlElement.cs
- MemoryFailPoint.cs
- PropertyToken.cs
- RuntimeConfigurationRecord.cs
- SchemaRegistration.cs
- InvalidAsynchronousStateException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataServiceCollectionOfT.cs
- PointCollection.cs
- SdlChannelSink.cs
- CapabilitiesState.cs
- WebEventTraceProvider.cs
- ParseHttpDate.cs
- DataGridColumnHeaderCollection.cs
- Root.cs
- ToolStripSplitButton.cs
- OleTxTransaction.cs
- SubordinateTransaction.cs
- Inline.cs
- XmlNamespaceMappingCollection.cs
- RegexWriter.cs
- CellCreator.cs
- HttpResponseHeader.cs
- ActivityTypeResolver.xaml.cs
- DataSourceProvider.cs
- WindowsTooltip.cs
- CryptoApi.cs
- _ProxyChain.cs