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
- LogoValidationException.cs
- OSFeature.cs
- TimeSpanStorage.cs
- OleDbDataReader.cs
- QueryContinueDragEventArgs.cs
- BinaryExpression.cs
- PageParserFilter.cs
- DataGridViewRowCancelEventArgs.cs
- DataTableMapping.cs
- Tag.cs
- WindowsPen.cs
- FactoryGenerator.cs
- EventSourceCreationData.cs
- NamespaceMapping.cs
- WebContext.cs
- WebServicesDescriptionAttribute.cs
- ClientSettingsStore.cs
- SmtpException.cs
- Vector3DKeyFrameCollection.cs
- SqlFacetAttribute.cs
- DateTimeSerializationSection.cs
- SQLInt16Storage.cs
- SecurityPermission.cs
- ServerValidateEventArgs.cs
- TypeResolver.cs
- FormsAuthenticationUser.cs
- EncryptRequest.cs
- ColorConverter.cs
- ReadOnlyNameValueCollection.cs
- mediaeventshelper.cs
- MenuItemBindingCollection.cs
- OleDbCommandBuilder.cs
- KnownIds.cs
- httpstaticobjectscollection.cs
- odbcmetadatacolumnnames.cs
- ConnectionStringsExpressionBuilder.cs
- TimeManager.cs
- InputProcessorProfiles.cs
- XmlSchemaParticle.cs
- Hex.cs
- IPHostEntry.cs
- TableHeaderCell.cs
- GetCertificateRequest.cs
- ControlIdConverter.cs
- IriParsingElement.cs
- TripleDES.cs
- _LoggingObject.cs
- SrgsElement.cs
- AdornerPresentationContext.cs
- SafePointer.cs
- NetworkStream.cs
- IDataContractSurrogate.cs
- CombinedGeometry.cs
- DefaultPropertyAttribute.cs
- Rect3DValueSerializer.cs
- SystemUdpStatistics.cs
- SponsorHelper.cs
- ConnectionStringsSection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BufferAllocator.cs
- CustomTypeDescriptor.cs
- PeerCollaborationPermission.cs
- SspiSafeHandles.cs
- DbConnectionPoolIdentity.cs
- DependencyPropertyKey.cs
- FigureParagraph.cs
- Ref.cs
- ZipIOBlockManager.cs
- ReadOnlyCollectionBase.cs
- ContextMenuStripActionList.cs
- NativeCompoundFileAPIs.cs
- XmlAutoDetectWriter.cs
- BitmapEffectGeneralTransform.cs
- HyperLinkColumn.cs
- TableSectionStyle.cs
- Line.cs
- ToolboxItemAttribute.cs
- DataGridViewRowsAddedEventArgs.cs
- PackageDigitalSignature.cs
- FacetValues.cs
- CapabilitiesPattern.cs
- shaperfactoryquerycachekey.cs
- DataTable.cs
- ModelItemImpl.cs
- OracleConnectionString.cs
- NullRuntimeConfig.cs
- TreeViewDesigner.cs
- unsafeIndexingFilterStream.cs
- DataGridViewDataErrorEventArgs.cs
- ColorTransformHelper.cs
- RepeatInfo.cs
- ZipArchive.cs
- DashStyle.cs
- Attributes.cs
- ComponentDesigner.cs
- InitializationEventAttribute.cs
- ColumnCollection.cs
- DirectoryLocalQuery.cs
- InputManager.cs
- ReaderContextStackData.cs