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
- XmlNamespaceMapping.cs
- SettingsSavedEventArgs.cs
- WCFModelStrings.Designer.cs
- PolicyValidator.cs
- TraceSection.cs
- XmlDataCollection.cs
- BitmapFrameEncode.cs
- TextTabProperties.cs
- BitmapData.cs
- EditingCommands.cs
- PostBackTrigger.cs
- Menu.cs
- XslTransformFileEditor.cs
- SourceElementsCollection.cs
- SqlDataSourceCommandEventArgs.cs
- XmlWriterTraceListener.cs
- KeyInstance.cs
- _UriSyntax.cs
- VectorAnimation.cs
- Selection.cs
- XmlIlVisitor.cs
- GlobalItem.cs
- WebPartAddingEventArgs.cs
- SignedXmlDebugLog.cs
- FontDriver.cs
- AddInContractAttribute.cs
- ReadWriteSpinLock.cs
- VBIdentifierDesigner.xaml.cs
- KeyInfo.cs
- Int32CollectionValueSerializer.cs
- DataColumnChangeEvent.cs
- Block.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- PrintDialog.cs
- SharedUtils.cs
- ListBindableAttribute.cs
- WebEvents.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EntityStoreSchemaGenerator.cs
- EventToken.cs
- RIPEMD160.cs
- XmlSchemaException.cs
- LoginName.cs
- InputLanguageCollection.cs
- SoapCommonClasses.cs
- PackageStore.cs
- UInt32Converter.cs
- ClientType.cs
- AddInPipelineAttributes.cs
- WebServiceBindingAttribute.cs
- ImportContext.cs
- ServiceModelPerformanceCounters.cs
- IconConverter.cs
- CodeEntryPointMethod.cs
- StringBlob.cs
- ReadOnlyDataSource.cs
- UpdatePanel.cs
- ListChangedEventArgs.cs
- FontFamilyValueSerializer.cs
- XamlPointCollectionSerializer.cs
- DataSetMappper.cs
- SimpleFieldTemplateUserControl.cs
- DesignerCommandSet.cs
- EnumMemberAttribute.cs
- BooleanAnimationBase.cs
- ClientTargetCollection.cs
- Matrix.cs
- RequestCachePolicy.cs
- TextEmbeddedObject.cs
- Operator.cs
- SqlBooleanMismatchVisitor.cs
- ConfigXmlAttribute.cs
- Light.cs
- MatrixTransform.cs
- EllipticalNodeOperations.cs
- ToolStripSystemRenderer.cs
- ExtendedProperty.cs
- ContextProperty.cs
- Decorator.cs
- WebPartVerbCollection.cs
- TextBlockAutomationPeer.cs
- ProgressBarRenderer.cs
- DataGridRelationshipRow.cs
- CompilerResults.cs
- AssemblyBuilder.cs
- SHA512.cs
- StatusBar.cs
- DockEditor.cs
- XmlSchemaSimpleContentExtension.cs
- FilterFactory.cs
- QilList.cs
- CompositeCollectionView.cs
- HashHelper.cs
- Double.cs
- ChannelServices.cs
- FixedSOMPageConstructor.cs
- Control.cs
- DispatcherProcessingDisabled.cs
- Span.cs
- DynamicResourceExtensionConverter.cs