Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RemotingConfiguration.cs
- StrokeCollectionConverter.cs
- DataControlFieldCollection.cs
- NavigatorInput.cs
- SqlVersion.cs
- BlurEffect.cs
- ParagraphResult.cs
- DateTimeConverter2.cs
- MenuStrip.cs
- SqlBooleanMismatchVisitor.cs
- ZoomComboBox.cs
- SaveFileDialog.cs
- MembershipUser.cs
- coordinatorfactory.cs
- SafeSecurityHelper.cs
- DataSourceCollectionBase.cs
- GridViewCancelEditEventArgs.cs
- RemotingAttributes.cs
- FileLogRecord.cs
- MouseWheelEventArgs.cs
- TextMetrics.cs
- OracleMonthSpan.cs
- FlowDocumentView.cs
- EnumerableRowCollection.cs
- PrintPreviewGraphics.cs
- ActivityDesignerResources.cs
- TypeConverterAttribute.cs
- CodeDOMUtility.cs
- SafeArrayTypeMismatchException.cs
- HwndSourceKeyboardInputSite.cs
- FileRecordSequenceHelper.cs
- InteropEnvironment.cs
- CodeIdentifier.cs
- TextFormatterHost.cs
- GridViewEditEventArgs.cs
- DbReferenceCollection.cs
- OdbcEnvironment.cs
- RayHitTestParameters.cs
- TextOnlyOutput.cs
- SafeCertificateStore.cs
- ProcessModule.cs
- Stack.cs
- CreateUserErrorEventArgs.cs
- ConfigXmlWhitespace.cs
- IndexedSelectQueryOperator.cs
- EnumCodeDomSerializer.cs
- XmlSchemaValidationException.cs
- ComponentGlyph.cs
- WeakReference.cs
- ObjectViewQueryResultData.cs
- DataGridPageChangedEventArgs.cs
- SecurityContext.cs
- Propagator.ExtentPlaceholderCreator.cs
- WebUtility.cs
- XmlLinkedNode.cs
- DrawingServices.cs
- ToolStripItemRenderEventArgs.cs
- CmsUtils.cs
- MetaModel.cs
- SqlBuffer.cs
- ProcessModelInfo.cs
- AutomationElementCollection.cs
- RecordManager.cs
- HtmlTextArea.cs
- UIPermission.cs
- SqlCommandBuilder.cs
- PageVisual.cs
- EntityTemplateFactory.cs
- SimpleWebHandlerParser.cs
- EmptyEnumerator.cs
- CodeGeneratorOptions.cs
- ToolStripDropTargetManager.cs
- QuotedStringFormatReader.cs
- ArrayHelper.cs
- DeclaredTypeElement.cs
- XmlWriter.cs
- XPathChildIterator.cs
- FamilyTypefaceCollection.cs
- DnsElement.cs
- FillBehavior.cs
- XpsImage.cs
- ByteAnimation.cs
- CryptoHandle.cs
- CultureInfoConverter.cs
- SystemParameters.cs
- PathBox.cs
- OracleCommandSet.cs
- TreeNodeBindingCollection.cs
- ServiceControllerDesigner.cs
- SafeRightsManagementSessionHandle.cs
- HotCommands.cs
- MouseWheelEventArgs.cs
- FamilyTypefaceCollection.cs
- FullTrustAssembliesSection.cs
- AutomationElement.cs
- LOSFormatter.cs
- WorkflowMarkupElementEventArgs.cs
- UriTemplateCompoundPathSegment.cs
- XNodeValidator.cs
- DataKeyArray.cs