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
- COMException.cs
- AppDomain.cs
- TextInfo.cs
- Comparer.cs
- FontNameEditor.cs
- ConstraintCollection.cs
- WizardForm.cs
- ToolStripItemClickedEventArgs.cs
- SiteMapPath.cs
- GB18030Encoding.cs
- DataControlCommands.cs
- Permission.cs
- TreeNodeStyleCollectionEditor.cs
- ByteAnimationUsingKeyFrames.cs
- SolidColorBrush.cs
- SHA384Managed.cs
- DataGridViewSortCompareEventArgs.cs
- XmlReader.cs
- DataRelationPropertyDescriptor.cs
- ComponentConverter.cs
- LinqDataSource.cs
- PermissionSet.cs
- DotAtomReader.cs
- ServiceEndpoint.cs
- CodeExpressionCollection.cs
- SByte.cs
- SqlClientPermission.cs
- SrgsRulesCollection.cs
- XslException.cs
- DataGridColumnEventArgs.cs
- InternalTypeHelper.cs
- SystemIcmpV6Statistics.cs
- TimeBoundedCache.cs
- DataViewManagerListItemTypeDescriptor.cs
- MatrixTransform.cs
- XmlSchemaAnnotation.cs
- NumberFunctions.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ContextStack.cs
- ListViewAutomationPeer.cs
- CompositeScriptReferenceEventArgs.cs
- XslTransformFileEditor.cs
- ValueUnavailableException.cs
- VariableQuery.cs
- SponsorHelper.cs
- OleDbRowUpdatedEvent.cs
- SortFieldComparer.cs
- Vector3DKeyFrameCollection.cs
- OleDbConnectionFactory.cs
- HwndHostAutomationPeer.cs
- NamespaceEmitter.cs
- Matrix3DValueSerializer.cs
- ApplicationHost.cs
- UpdateCompiler.cs
- UnsafeNetInfoNativeMethods.cs
- ThemeableAttribute.cs
- BaseParser.cs
- SwitchDesigner.xaml.cs
- Transform3DCollection.cs
- Registry.cs
- PointAnimationUsingPath.cs
- MsmqInputChannel.cs
- MailDefinition.cs
- DataRowView.cs
- SchemaHelper.cs
- DBSchemaTable.cs
- AQNBuilder.cs
- PropertyInformationCollection.cs
- RegexFCD.cs
- XamlWriter.cs
- CheckBoxList.cs
- WindowsSlider.cs
- SharedDp.cs
- TranslateTransform3D.cs
- PrefixQName.cs
- Button.cs
- SourceSwitch.cs
- PtsHost.cs
- StylusPointProperty.cs
- panel.cs
- DecoderReplacementFallback.cs
- UpdateCommand.cs
- MessageDecoder.cs
- VisualTreeUtils.cs
- TextEditorSelection.cs
- ObjectTag.cs
- DoubleUtil.cs
- DependencyObject.cs
- SoapServerMessage.cs
- WmiPutTraceRecord.cs
- DataTableNewRowEvent.cs
- StringUtil.cs
- SafeTokenHandle.cs
- TextBoxBase.cs
- CornerRadiusConverter.cs
- ByteFacetDescriptionElement.cs
- XmlUtilWriter.cs
- StylusPointPropertyInfoDefaults.cs
- EditingScope.cs
- Message.cs