Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Thumb.cs
- AsynchronousChannel.cs
- SendActivityDesigner.cs
- Drawing.cs
- StructuredType.cs
- SqlFactory.cs
- HwndProxyElementProvider.cs
- ContainerActivationHelper.cs
- PrinterSettings.cs
- BitmapEffectOutputConnector.cs
- Symbol.cs
- TrustManagerPromptUI.cs
- HttpApplicationFactory.cs
- PageHandlerFactory.cs
- FrameworkContextData.cs
- PerformanceCounterManager.cs
- WebBrowserHelper.cs
- ViewKeyConstraint.cs
- FileRecordSequence.cs
- RSAPKCS1SignatureDeformatter.cs
- FixedHyperLink.cs
- OdbcConnectionOpen.cs
- DSASignatureFormatter.cs
- WebPartChrome.cs
- DataGridViewCellConverter.cs
- ManifestResourceInfo.cs
- IImplicitResourceProvider.cs
- ConfigXmlAttribute.cs
- AspProxy.cs
- DynamicActivityXamlReader.cs
- TextTreeTextBlock.cs
- SystemColors.cs
- DefaultValueAttribute.cs
- XamlSerializerUtil.cs
- WindowsListViewGroup.cs
- TextEffectCollection.cs
- PropertyExpression.cs
- TdsParserStateObject.cs
- IFlowDocumentViewer.cs
- WindowsListViewScroll.cs
- MeasureItemEvent.cs
- EmptyReadOnlyDictionaryInternal.cs
- MetadataCacheItem.cs
- SessionStateContainer.cs
- AsyncStreamReader.cs
- GetIndexBinder.cs
- DataBindingCollection.cs
- InternalEnumValidatorAttribute.cs
- MessageQueueEnumerator.cs
- GC.cs
- RelationshipEntry.cs
- ProfileSettingsCollection.cs
- KeyManager.cs
- PrintingPermissionAttribute.cs
- DefaultPropertyAttribute.cs
- SamlAdvice.cs
- XomlCompiler.cs
- SmiMetaData.cs
- RelationshipEndCollection.cs
- Rule.cs
- WebBaseEventKeyComparer.cs
- PropertyTab.cs
- XmlSchemaAttributeGroup.cs
- IResourceProvider.cs
- SqlDataReaderSmi.cs
- TypeNameConverter.cs
- BitmapEffectInput.cs
- StructuredTypeInfo.cs
- MenuItemCollectionEditorDialog.cs
- ObsoleteAttribute.cs
- EntityConnection.cs
- TouchesOverProperty.cs
- AmbientLight.cs
- InternalConfigSettingsFactory.cs
- COM2PropertyBuilderUITypeEditor.cs
- MenuScrollingVisibilityConverter.cs
- FocusTracker.cs
- XhtmlBasicPageAdapter.cs
- JumpItem.cs
- ListViewSortEventArgs.cs
- PackageRelationshipCollection.cs
- mansign.cs
- OracleConnectionFactory.cs
- Run.cs
- WindowsIPAddress.cs
- KnownIds.cs
- _ShellExpression.cs
- Window.cs
- JoinSymbol.cs
- XmlException.cs
- DataGridCaption.cs
- KoreanLunisolarCalendar.cs
- PopOutPanel.cs
- Deflater.cs
- DiscoveryDocumentSearchPattern.cs
- Timer.cs
- FilteredAttributeCollection.cs
- RefreshInfo.cs
- SocketSettings.cs
- TypeToken.cs