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
- NamedPipeTransportElement.cs
- StrokeNodeOperations.cs
- RoutedCommand.cs
- TimeStampChecker.cs
- SemanticResultKey.cs
- ListViewInsertedEventArgs.cs
- EmissiveMaterial.cs
- MasterPageBuildProvider.cs
- DocumentViewer.cs
- Timer.cs
- Misc.cs
- DrawingGroupDrawingContext.cs
- SqlReorderer.cs
- ImmComposition.cs
- Context.cs
- ResourceDisplayNameAttribute.cs
- TreeViewHitTestInfo.cs
- SafeNativeMethods.cs
- CodeRemoveEventStatement.cs
- SslStreamSecurityUpgradeProvider.cs
- DataReaderContainer.cs
- XmlSerializerOperationGenerator.cs
- ColumnReorderedEventArgs.cs
- ProviderConnectionPointCollection.cs
- XmlSchemaSimpleContentExtension.cs
- AnyAllSearchOperator.cs
- SapiAttributeParser.cs
- FilteredXmlReader.cs
- XPathScanner.cs
- ReferenceConverter.cs
- ThreadAbortException.cs
- QuotaThrottle.cs
- SizeF.cs
- MemberAssignment.cs
- SrgsOneOf.cs
- IdentityReference.cs
- TypeRestriction.cs
- AsyncCodeActivity.cs
- ScriptingAuthenticationServiceSection.cs
- SQLDouble.cs
- HebrewNumber.cs
- StaticResourceExtension.cs
- AggregationMinMaxHelpers.cs
- TopClause.cs
- InkCanvasInnerCanvas.cs
- SystemTcpConnection.cs
- storagemappingitemcollection.viewdictionary.cs
- HGlobalSafeHandle.cs
- ValidationErrorCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- MonikerSyntaxException.cs
- EraserBehavior.cs
- WSSecurityXXX2005.cs
- SchemaEntity.cs
- XsdDataContractExporter.cs
- TemplatedWizardStep.cs
- BroadcastEventHelper.cs
- ByteAnimationUsingKeyFrames.cs
- WorkflowTimerService.cs
- LocalizationComments.cs
- ImageFormat.cs
- RuleRef.cs
- Debug.cs
- StringReader.cs
- CodeNamespaceImport.cs
- Triangle.cs
- SafeNativeMethods.cs
- OverflowException.cs
- HttpCacheVary.cs
- UserThread.cs
- TemplateParser.cs
- Publisher.cs
- WindowsRichEditRange.cs
- wgx_commands.cs
- RegionIterator.cs
- XNodeNavigator.cs
- URL.cs
- CriticalExceptions.cs
- RouteValueDictionary.cs
- ToolboxItemLoader.cs
- ProtocolsSection.cs
- ObjectDataSourceMethodEventArgs.cs
- BasicHttpSecurity.cs
- MetafileHeader.cs
- CustomAttributeFormatException.cs
- FormsAuthenticationEventArgs.cs
- FormView.cs
- IfJoinedCondition.cs
- NamedPipeAppDomainProtocolHandler.cs
- SchemaType.cs
- SystemFonts.cs
- TagNameToTypeMapper.cs
- BulletedListEventArgs.cs
- OdbcConnectionString.cs
- ConstructorBuilder.cs
- BindingSource.cs
- ButtonPopupAdapter.cs
- IProducerConsumerCollection.cs
- EventBuilder.cs
- ThreadStateException.cs