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
- HttpInputStream.cs
- Native.cs
- DateBoldEvent.cs
- WsdlBuildProvider.cs
- InvalidStoreProtectionKeyException.cs
- ConnectionInterfaceCollection.cs
- DeviceContexts.cs
- safemediahandle.cs
- MimeParameterWriter.cs
- SettingsPropertyIsReadOnlyException.cs
- PenLineCapValidation.cs
- LocalIdKeyIdentifierClause.cs
- TableLayoutPanelCodeDomSerializer.cs
- CookielessHelper.cs
- ServerIdentity.cs
- MetadataArtifactLoaderFile.cs
- ActivationServices.cs
- PrintingPermissionAttribute.cs
- WebRequestModuleElementCollection.cs
- ButtonColumn.cs
- Console.cs
- CheckedPointers.cs
- LayoutEngine.cs
- MetadataSet.cs
- Message.cs
- PropertyBuilder.cs
- SqlExpander.cs
- SqlCommand.cs
- XmlJsonWriter.cs
- DifferencingCollection.cs
- ValidatorCollection.cs
- AccessorTable.cs
- PolicyFactory.cs
- NavigationService.cs
- UidPropertyAttribute.cs
- DataExpression.cs
- ActiveXHelper.cs
- CustomGrammar.cs
- TargetParameterCountException.cs
- DictationGrammar.cs
- PermissionToken.cs
- XmlSerializationWriter.cs
- SafeNativeMethods.cs
- XslNumber.cs
- KeyFrames.cs
- NaturalLanguageHyphenator.cs
- HttpRequest.cs
- AttributedMetaModel.cs
- Stack.cs
- DesignerDataTable.cs
- XsltConvert.cs
- UnknownBitmapDecoder.cs
- Convert.cs
- InputChannel.cs
- VirtualPathProvider.cs
- CodeDefaultValueExpression.cs
- BitmapData.cs
- EntityDataSourceContextCreatedEventArgs.cs
- XPathParser.cs
- RequestTimeoutManager.cs
- CommonObjectSecurity.cs
- Rights.cs
- XmlSignificantWhitespace.cs
- UnmanagedMemoryStreamWrapper.cs
- TrustLevelCollection.cs
- InternalsVisibleToAttribute.cs
- ComboBoxHelper.cs
- UserMapPath.cs
- RuleRef.cs
- CapabilitiesAssignment.cs
- SessionPageStatePersister.cs
- UIElementParaClient.cs
- LogExtent.cs
- EventLogEntry.cs
- Subtract.cs
- DecoderNLS.cs
- DrawingAttributesDefaultValueFactory.cs
- FlowDocument.cs
- MetadataPropertyvalue.cs
- BitmapEffectrendercontext.cs
- BrowsableAttribute.cs
- DbXmlEnabledProviderManifest.cs
- Vector3DCollectionConverter.cs
- SqlCacheDependencyDatabase.cs
- AliasExpr.cs
- BufferBuilder.cs
- BulletedList.cs
- CustomValidator.cs
- TdsValueSetter.cs
- coordinatorfactory.cs
- SchemaHelper.cs
- SetterBaseCollection.cs
- GenericAuthenticationEventArgs.cs
- Operators.cs
- SortKey.cs
- BinaryObjectReader.cs
- DocumentPageView.cs
- SqlClientPermission.cs
- CompoundFileStreamReference.cs
- SpecularMaterial.cs