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
- sqlcontext.cs
- TreeViewItem.cs
- MessageFilterTable.cs
- LinearQuaternionKeyFrame.cs
- Setter.cs
- SmtpFailedRecipientException.cs
- Debug.cs
- EntityParameterCollection.cs
- CaseCqlBlock.cs
- EasingFunctionBase.cs
- SystemInformation.cs
- DataGridCell.cs
- DockProviderWrapper.cs
- AutomationElement.cs
- ColorTranslator.cs
- MetadataCache.cs
- ContainerUtilities.cs
- TableRow.cs
- SafeLibraryHandle.cs
- XmlBaseWriter.cs
- GridViewRowEventArgs.cs
- MTConfigUtil.cs
- DbProviderFactory.cs
- CloudCollection.cs
- Command.cs
- CodeSubDirectory.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- OneOfElement.cs
- ProviderManager.cs
- Color.cs
- SmiEventSink_Default.cs
- IFlowDocumentViewer.cs
- DesignerVerbCollection.cs
- EntityConnection.cs
- mda.cs
- EllipseGeometry.cs
- ContextConfiguration.cs
- _FixedSizeReader.cs
- InboundActivityHelper.cs
- UIPermission.cs
- TemplateKeyConverter.cs
- COM2FontConverter.cs
- AnnotationHelper.cs
- Transform3DGroup.cs
- UriTemplateTrieNode.cs
- AppSettingsSection.cs
- IriParsingElement.cs
- BasicCellRelation.cs
- DataGridViewBand.cs
- DecimalAnimationUsingKeyFrames.cs
- OracleInfoMessageEventArgs.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- EndpointAddressMessageFilter.cs
- CompModSwitches.cs
- ServiceReference.cs
- RegistryDataKey.cs
- PerformanceCounterCategory.cs
- ChildrenQuery.cs
- DoubleLinkList.cs
- SuspendDesigner.cs
- InputManager.cs
- BezierSegment.cs
- ModelPropertyCollectionImpl.cs
- TextBoxRenderer.cs
- SQLDouble.cs
- DirtyTextRange.cs
- InternalBufferOverflowException.cs
- ListSortDescriptionCollection.cs
- ProcessModelSection.cs
- DataSysAttribute.cs
- CfgRule.cs
- PlainXmlWriter.cs
- Component.cs
- CompiledAction.cs
- RequestContext.cs
- ZeroOpNode.cs
- Char.cs
- XmlJsonReader.cs
- EntityDataSourceChangingEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- ObjectRef.cs
- AsymmetricKeyExchangeFormatter.cs
- Baml2006ReaderFrame.cs
- SynchronizedDispatch.cs
- QilXmlWriter.cs
- FileLogRecordEnumerator.cs
- CmsInterop.cs
- GridSplitterAutomationPeer.cs
- HttpCacheVary.cs
- ConfigUtil.cs
- ArrayTypeMismatchException.cs
- XD.cs
- TemplateColumn.cs
- LoginName.cs
- RunInstallerAttribute.cs
- DbProviderFactory.cs
- SynchronizedRandom.cs
- DynamicILGenerator.cs
- WizardStepBase.cs
- AutomationIdentifierGuids.cs