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
- TextDecorations.cs
- XmlArrayItemAttribute.cs
- mda.cs
- ProtocolsConfigurationHandler.cs
- DataGridTable.cs
- EmptyEnumerator.cs
- ListSurrogate.cs
- ApplicationProxyInternal.cs
- Misc.cs
- ItemsPresenter.cs
- CollectionViewGroupInternal.cs
- SoapAttributes.cs
- NodeCounter.cs
- XPathNodeIterator.cs
- ConfigurationStrings.cs
- ColorTransform.cs
- FormViewDeleteEventArgs.cs
- SpellCheck.cs
- XmlSchemaFacet.cs
- CapabilitiesAssignment.cs
- GridViewUpdatedEventArgs.cs
- TreeNodeCollection.cs
- StringValueConverter.cs
- CanonicalFormWriter.cs
- RijndaelManagedTransform.cs
- VariantWrapper.cs
- AsyncOperationManager.cs
- OdbcHandle.cs
- LocalsItemDescription.cs
- EditingCoordinator.cs
- XmlTextAttribute.cs
- HashHelper.cs
- HorizontalAlignConverter.cs
- _OverlappedAsyncResult.cs
- DocumentViewerHelper.cs
- XmlNamespaceMapping.cs
- SudsWriter.cs
- NonVisualControlAttribute.cs
- StylusLogic.cs
- EntryPointNotFoundException.cs
- ListControl.cs
- MexHttpBindingElement.cs
- TraceSection.cs
- UpDownBaseDesigner.cs
- TreeBuilderBamlTranslator.cs
- DataBoundControl.cs
- SHA1.cs
- StreamGeometryContext.cs
- URLString.cs
- RoleService.cs
- AmbientLight.cs
- Expression.cs
- MailWebEventProvider.cs
- DocumentSchemaValidator.cs
- UdpAnnouncementEndpoint.cs
- PageContentCollection.cs
- Msmq.cs
- CompositeDuplexElement.cs
- FolderBrowserDialogDesigner.cs
- RequiredFieldValidator.cs
- EntityClassGenerator.cs
- TextRunCacheImp.cs
- TableHeaderCell.cs
- DataGridViewCellPaintingEventArgs.cs
- StaticExtension.cs
- HandlerBase.cs
- ToolTipAutomationPeer.cs
- StringSource.cs
- ComponentEditorForm.cs
- CounterCreationDataCollection.cs
- DataRelation.cs
- ClientSettingsStore.cs
- CqlParserHelpers.cs
- DataGridParentRows.cs
- UidPropertyAttribute.cs
- XmlReaderSettings.cs
- IDataContractSurrogate.cs
- EntityContainerEmitter.cs
- StringSorter.cs
- ImageMap.cs
- MailAddress.cs
- CollectionDataContractAttribute.cs
- XmlAttributeAttribute.cs
- RepeaterItemCollection.cs
- CaseStatementSlot.cs
- GenerateTemporaryTargetAssembly.cs
- Command.cs
- TextViewBase.cs
- DoubleAverageAggregationOperator.cs
- HtmlTableRow.cs
- BitmapPalette.cs
- PDBReader.cs
- Axis.cs
- MsmqInputChannelListener.cs
- SiteMapNode.cs
- GridViewRowCollection.cs
- ProfileGroupSettings.cs
- URL.cs
- HttpSysSettings.cs
- BitConverter.cs