Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / ContentTextAutomationPeer.cs / 1 / ContentTextAutomationPeer.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// File: ContentTextElementAutomationPeer.cs
//
// Description: Base class for AutomationPeers associated with TextPattern.
//
//---------------------------------------------------------------------------
using System.Collections.Generic; // List
using System.Windows.Automation.Provider; // IRawElementProviderSimple
using System.Windows.Documents; // ITextPointer
namespace System.Windows.Automation.Peers
{
///
/// Base class for AutomationPeers associated with TextPattern.
///
public abstract class ContentTextAutomationPeer : FrameworkContentElementAutomationPeer
{
///
/// Constructor.
///
protected ContentTextAutomationPeer(FrameworkContentElement owner)
: base(owner)
{ }
///
/// Maps AutomationPeer to provider object.
///
internal new IRawElementProviderSimple ProviderFromPeer(AutomationPeer peer)
{
return base.ProviderFromPeer(peer);
}
///
/// Maps automation provider to DependencyObject.
///
internal DependencyObject ElementFromProvider(IRawElementProviderSimple provider)
{
DependencyObject element = null;
AutomationPeer peer = PeerFromProvider(provider);
if (peer is UIElementAutomationPeer)
{
element = ((UIElementAutomationPeer)peer).Owner;
}
else if (peer is ContentElementAutomationPeer)
{
element = ((ContentElementAutomationPeer)peer).Owner;
}
return element;
}
///
/// Gets collection of AutomationPeers for given text range.
///
internal abstract List GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
}
}
// 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
- RequestCachePolicyConverter.cs
- XmlTypeMapping.cs
- ReadOnlyCollection.cs
- DataTable.cs
- SecurityDocument.cs
- DataGridViewAccessibleObject.cs
- TripleDESCryptoServiceProvider.cs
- X509Certificate2.cs
- XmlSchemaSimpleContentExtension.cs
- ValidationEventArgs.cs
- Transform.cs
- SQLInt32Storage.cs
- SingleStorage.cs
- NumberFormatInfo.cs
- PackUriHelper.cs
- QueryIntervalOp.cs
- BindStream.cs
- SQLInt64.cs
- AbstractDataSvcMapFileLoader.cs
- QilPatternFactory.cs
- FunctionMappingTranslator.cs
- OpenTypeCommon.cs
- HtmlTableCell.cs
- RequestCache.cs
- OutputBuffer.cs
- MSAAEventDispatcher.cs
- ObjectContext.cs
- DesignerVerb.cs
- ConfigXmlText.cs
- OleDbEnumerator.cs
- UseLicense.cs
- PageAsyncTask.cs
- RC2.cs
- XDRSchema.cs
- ReceiveContextCollection.cs
- PageHandlerFactory.cs
- ScriptRef.cs
- MaskDesignerDialog.cs
- SQLResource.cs
- LeaseManager.cs
- CodeNamespaceImportCollection.cs
- SpnegoTokenProvider.cs
- ToolStrip.cs
- DictionaryEntry.cs
- PeerNodeAddress.cs
- ProcessHostServerConfig.cs
- XmlTypeMapping.cs
- PackWebRequestFactory.cs
- cache.cs
- ClientSettingsProvider.cs
- SiteMapNodeItem.cs
- Converter.cs
- MbpInfo.cs
- NameObjectCollectionBase.cs
- RequestCacheValidator.cs
- AppDomainFactory.cs
- CopyEncoder.cs
- SQLBinary.cs
- CollectionEditorDialog.cs
- CrossSiteScriptingValidation.cs
- ReliableMessagingVersion.cs
- StylusButtonCollection.cs
- ExtensionQuery.cs
- CorrelationResolver.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- VirtualizedItemPattern.cs
- DataSourceProvider.cs
- AssemblyResourceLoader.cs
- FixedDocumentPaginator.cs
- TextServicesCompartmentContext.cs
- XmlCompatibilityReader.cs
- LicenseProviderAttribute.cs
- PnrpPermission.cs
- RectValueSerializer.cs
- TrackBar.cs
- BaseCodePageEncoding.cs
- HierarchicalDataBoundControl.cs
- ISAPIApplicationHost.cs
- NameValuePermission.cs
- SchemaImporterExtensionsSection.cs
- X509UI.cs
- ClientSideQueueItem.cs
- ConvertTextFrag.cs
- ItemsControlAutomationPeer.cs
- ObjectDataSource.cs
- PageCodeDomTreeGenerator.cs
- WindowsFormsEditorServiceHelper.cs
- ParentUndoUnit.cs
- ParseHttpDate.cs
- TextEditorParagraphs.cs
- ActivationServices.cs
- DesignerResources.cs
- AccessibilityApplicationManager.cs
- ToolBar.cs
- FlowchartDesigner.xaml.cs
- Clock.cs
- StylusSystemGestureEventArgs.cs
- Binding.cs
- DataGridViewRowHeaderCell.cs
- WebPartDisplayMode.cs