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
- ContractMapping.cs
- XmlSchemaAnnotation.cs
- IntegrationExceptionEventArgs.cs
- IERequestCache.cs
- DesignerToolboxInfo.cs
- PersonalizableAttribute.cs
- ImageBrush.cs
- EntityAdapter.cs
- XPathSelectionIterator.cs
- ConsoleTraceListener.cs
- ExceptionUtil.cs
- ArraySet.cs
- HeaderedItemsControl.cs
- LocationSectionRecord.cs
- COM2IProvidePropertyBuilderHandler.cs
- TriggerActionCollection.cs
- Math.cs
- SrgsOneOf.cs
- PageParser.cs
- HttpStreamMessageEncoderFactory.cs
- TextServicesPropertyRanges.cs
- OutKeywords.cs
- SessionStateModule.cs
- CacheForPrimitiveTypes.cs
- QueueSurrogate.cs
- ParameterReplacerVisitor.cs
- XamlFilter.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- SetterBase.cs
- MailWriter.cs
- ExecutionContext.cs
- XPathPatternBuilder.cs
- GroupItemAutomationPeer.cs
- RegexBoyerMoore.cs
- DesignerForm.cs
- RichTextBoxContextMenu.cs
- ToolboxItemImageConverter.cs
- BitmapPalette.cs
- UseAttributeSetsAction.cs
- CompilerTypeWithParams.cs
- TimeoutValidationAttribute.cs
- WizardPanelChangingEventArgs.cs
- DataServiceHostFactory.cs
- SettingsPropertyIsReadOnlyException.cs
- ColumnMapTranslator.cs
- UnsignedPublishLicense.cs
- Matrix3DValueSerializer.cs
- ExclusiveTcpTransportManager.cs
- NTAccount.cs
- SystemIPAddressInformation.cs
- UnmanagedMemoryStream.cs
- UserControlBuildProvider.cs
- InvalidFilterCriteriaException.cs
- Part.cs
- ConnectionManagementSection.cs
- ByteKeyFrameCollection.cs
- InternalRelationshipCollection.cs
- Journal.cs
- QueryOutputWriter.cs
- XmlAutoDetectWriter.cs
- XhtmlConformanceSection.cs
- MappingItemCollection.cs
- HandledEventArgs.cs
- ValueProviderWrapper.cs
- DispatchChannelSink.cs
- DaylightTime.cs
- SerialStream.cs
- UInt64Converter.cs
- HtmlInputPassword.cs
- DataContext.cs
- ListViewEditEventArgs.cs
- Missing.cs
- FixedTextSelectionProcessor.cs
- SelfIssuedTokenFactoryCredential.cs
- DataTableReaderListener.cs
- TargetPerspective.cs
- LayoutSettings.cs
- ListenerSessionConnectionReader.cs
- SafeNativeMethods.cs
- PreviewPageInfo.cs
- ToolBarTray.cs
- Animatable.cs
- AnyAllSearchOperator.cs
- _CommandStream.cs
- CollectionChangeEventArgs.cs
- SecuritySessionFilter.cs
- DiscreteKeyFrames.cs
- StorageAssociationTypeMapping.cs
- SoapMessage.cs
- RequestCacheManager.cs
- RangeExpression.cs
- DrawingContextWalker.cs
- Model3D.cs
- CodeDirectoryCompiler.cs
- EnumUnknown.cs
- DataGridPagingPage.cs
- InteropAutomationProvider.cs
- ConcurrentQueue.cs
- RoutedEventHandlerInfo.cs
- CustomTypeDescriptor.cs