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
- ResetableIterator.cs
- WebResponse.cs
- SchemaTableColumn.cs
- PathSegmentCollection.cs
- GridPatternIdentifiers.cs
- MetadataException.cs
- CommandEventArgs.cs
- ListenDesigner.cs
- WindowsListView.cs
- SemanticValue.cs
- SequentialWorkflowHeaderFooter.cs
- ErasingStroke.cs
- ResolveCriteria11.cs
- RoleServiceManager.cs
- EventLogPermission.cs
- PositiveTimeSpanValidator.cs
- Font.cs
- ArgumentException.cs
- DrawingBrush.cs
- FullTrustAssemblyCollection.cs
- TableSectionStyle.cs
- SuppressMergeCheckAttribute.cs
- EastAsianLunisolarCalendar.cs
- ScopeCollection.cs
- MatrixUtil.cs
- LocalBuilder.cs
- ApplicationException.cs
- DmlSqlGenerator.cs
- ServerValidateEventArgs.cs
- OleDbConnectionInternal.cs
- FloaterBaseParaClient.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SelectionEditingBehavior.cs
- CodeDirectionExpression.cs
- Material.cs
- DispatcherEventArgs.cs
- DocumentSchemaValidator.cs
- dbdatarecord.cs
- TraversalRequest.cs
- XsdValidatingReader.cs
- ControlEvent.cs
- Choices.cs
- GuidelineCollection.cs
- WebUtil.cs
- EventArgs.cs
- Activator.cs
- SoapReflectionImporter.cs
- Resources.Designer.cs
- ResourceDescriptionAttribute.cs
- BitmapEffectrendercontext.cs
- _DomainName.cs
- diagnosticsswitches.cs
- StructureChangedEventArgs.cs
- ObjectListCommand.cs
- RealizationDrawingContextWalker.cs
- ContractInstanceProvider.cs
- DataGridColumnFloatingHeader.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DeflateEmulationStream.cs
- DetailsViewInsertedEventArgs.cs
- ParameterElement.cs
- QuadraticBezierSegment.cs
- ScriptingSectionGroup.cs
- DispatcherExceptionEventArgs.cs
- ConstraintEnumerator.cs
- VirtualizingStackPanel.cs
- OutputScope.cs
- SiteMapSection.cs
- ListViewItemEventArgs.cs
- MatrixKeyFrameCollection.cs
- FontWeight.cs
- WebBrowsableAttribute.cs
- ProfileProvider.cs
- NativeMethods.cs
- ServiceOperationListItemList.cs
- RowsCopiedEventArgs.cs
- DescendentsWalkerBase.cs
- CreateUserWizardDesigner.cs
- FlowDocumentScrollViewer.cs
- DataTableReaderListener.cs
- OleDbRowUpdatingEvent.cs
- MethodSignatureGenerator.cs
- SiteMapDataSourceView.cs
- XamlPointCollectionSerializer.cs
- WhitespaceRule.cs
- ErrorFormatter.cs
- CodeChecksumPragma.cs
- WebPartUtil.cs
- WinInetCache.cs
- InputMethodStateChangeEventArgs.cs
- DataControlFieldCell.cs
- FileStream.cs
- XmlDomTextWriter.cs
- FocusChangedEventArgs.cs
- SapiRecognizer.cs
- TimeoutException.cs
- ResXBuildProvider.cs
- ObjectStateFormatter.cs
- GradientSpreadMethodValidation.cs
- DoubleAnimationClockResource.cs