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
- DefinitionUpdate.cs
- RijndaelCryptoServiceProvider.cs
- GenericParameterDataContract.cs
- ObjectMemberMapping.cs
- SecurityKeyUsage.cs
- ExpressionEditorAttribute.cs
- DataGridDesigner.cs
- Converter.cs
- Msec.cs
- ColumnPropertiesGroup.cs
- PathSegment.cs
- SafeNativeMethodsMilCoreApi.cs
- EncoderExceptionFallback.cs
- ObjectManager.cs
- TextBox.cs
- DetailsViewUpdatedEventArgs.cs
- WizardDesigner.cs
- XmlQueryContext.cs
- TypeExtension.cs
- WebPartTransformerCollection.cs
- EntityDataSourceEntityTypeFilterItem.cs
- RequiredFieldValidator.cs
- precedingquery.cs
- Int32KeyFrameCollection.cs
- DataRowView.cs
- listviewsubitemcollectioneditor.cs
- XmlQualifiedName.cs
- PreviewPageInfo.cs
- DesignerSerializationOptionsAttribute.cs
- LicenseException.cs
- DbMetaDataColumnNames.cs
- EdmMember.cs
- ObjectIDGenerator.cs
- TypeConverterAttribute.cs
- InfiniteTimeSpanConverter.cs
- OleDbDataAdapter.cs
- DbConnectionStringCommon.cs
- Decoder.cs
- Page.cs
- RegexWorker.cs
- CodeSnippetStatement.cs
- RoamingStoreFile.cs
- PropertyNames.cs
- CorrelationManager.cs
- KeyValueConfigurationCollection.cs
- DetailsView.cs
- HTMLTextWriter.cs
- IntranetCredentialPolicy.cs
- HttpListener.cs
- Variable.cs
- DisplayInformation.cs
- ListBox.cs
- wgx_commands.cs
- FileSecurity.cs
- FilterableAttribute.cs
- HelpProvider.cs
- VectorAnimation.cs
- QueryStringHandler.cs
- EnumDataContract.cs
- OdbcRowUpdatingEvent.cs
- WebHttpSecurityModeHelper.cs
- List.cs
- GridViewRowCollection.cs
- ParallelDesigner.cs
- ShapingEngine.cs
- GeometryModel3D.cs
- DocumentApplication.cs
- XmlSchemaException.cs
- Compress.cs
- InvalidCastException.cs
- XmlSchema.cs
- Int64.cs
- SubpageParagraph.cs
- MemberPath.cs
- LinearGradientBrush.cs
- EntitySetBase.cs
- BindingValueChangedEventArgs.cs
- XmlSchemaSimpleType.cs
- NullableConverter.cs
- Solver.cs
- SchemaMapping.cs
- ConstructorArgumentAttribute.cs
- TypedRowHandler.cs
- XmlElement.cs
- CacheMode.cs
- FontFaceLayoutInfo.cs
- PartialList.cs
- SafeBitVector32.cs
- ChameleonKey.cs
- ConsoleTraceListener.cs
- PageCatalogPart.cs
- SignerInfo.cs
- Collection.cs
- AppDomainUnloadedException.cs
- UserControlBuildProvider.cs
- SqlDependencyListener.cs
- CloseSequenceResponse.cs
- ListSourceHelper.cs
- SlotInfo.cs
- BitmapEffectDrawingContextState.cs