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
- TrayIconDesigner.cs
- ConfigXmlElement.cs
- PlainXmlSerializer.cs
- Converter.cs
- StructuredProperty.cs
- DiagnosticStrings.cs
- ExportException.cs
- FixedDocumentPaginator.cs
- CommonProperties.cs
- FieldNameLookup.cs
- DataGridViewLinkCell.cs
- StateMachineHistory.cs
- DeviceSpecific.cs
- ResolveMatchesMessageCD1.cs
- TypeElementCollection.cs
- BitmapEffectCollection.cs
- QuerySettings.cs
- HttpHandlerActionCollection.cs
- ColorConvertedBitmap.cs
- ContourSegment.cs
- MatrixKeyFrameCollection.cs
- RuntimeResourceSet.cs
- WebPartVerbCollection.cs
- _LocalDataStoreMgr.cs
- ViewValidator.cs
- MaterialGroup.cs
- DispatchChannelSink.cs
- SqlInternalConnectionSmi.cs
- TreeNodeBindingCollection.cs
- Trace.cs
- CollectionChangeEventArgs.cs
- DesignerSerializerAttribute.cs
- WorkflowServiceHostFactory.cs
- RouteParametersHelper.cs
- InvalidDataException.cs
- ControlLocalizer.cs
- HMACSHA512.cs
- QueryGeneratorBase.cs
- AddingNewEventArgs.cs
- CompareInfo.cs
- RC2.cs
- TableLayoutRowStyleCollection.cs
- DataTemplateKey.cs
- StickyNoteHelper.cs
- SrgsElementFactoryCompiler.cs
- RtfControlWordInfo.cs
- XmlILModule.cs
- Subset.cs
- LinearQuaternionKeyFrame.cs
- IPGlobalProperties.cs
- TypeUtil.cs
- TypePropertyEditor.cs
- SafeCloseHandleCritical.cs
- CacheRequest.cs
- TraversalRequest.cs
- BaseParagraph.cs
- SessionEndingEventArgs.cs
- DataService.cs
- SimpleParser.cs
- processwaithandle.cs
- DrawListViewColumnHeaderEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- MarshalByValueComponent.cs
- WebBrowser.cs
- TableItemPattern.cs
- PlatformCulture.cs
- LineInfo.cs
- DataGrid.cs
- XamlStyleSerializer.cs
- safePerfProviderHandle.cs
- IdnMapping.cs
- LocalizationComments.cs
- FusionWrap.cs
- TdsParser.cs
- HMACMD5.cs
- ClientType.cs
- NativeCppClassAttribute.cs
- ExternalFile.cs
- DummyDataSource.cs
- Mouse.cs
- SamlAuthorizationDecisionStatement.cs
- ListControlConvertEventArgs.cs
- XPathScanner.cs
- PipelineComponent.cs
- Bold.cs
- LassoSelectionBehavior.cs
- EnumValAlphaComparer.cs
- FloaterParaClient.cs
- ErrorEventArgs.cs
- SuppressMessageAttribute.cs
- NamedPipeConnectionPoolSettings.cs
- CredentialCache.cs
- DataGridViewCellEventArgs.cs
- ErrorHandlerModule.cs
- EditorPartDesigner.cs
- TextWriter.cs
- BindingUtils.cs
- x509utils.cs
- FileDialogCustomPlace.cs
- XmlNamespaceManager.cs