Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ContentTextAutomationPeer.cs / 1305600 / 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
- WizardStepBase.cs
- SQlBooleanStorage.cs
- WebContext.cs
- OleDbErrorCollection.cs
- PtsHelper.cs
- RowType.cs
- SqlBulkCopyColumnMapping.cs
- WinEventTracker.cs
- ByteAnimation.cs
- ConfigXmlText.cs
- DesignerCategoryAttribute.cs
- KeyBinding.cs
- Composition.cs
- ImageSourceConverter.cs
- PassportPrincipal.cs
- DetailsViewRow.cs
- _emptywebproxy.cs
- CodeSubDirectoriesCollection.cs
- Menu.cs
- UnmanagedBitmapWrapper.cs
- AsyncStreamReader.cs
- RemotingConfigParser.cs
- UnicastIPAddressInformationCollection.cs
- MasterPageParser.cs
- GridViewRowEventArgs.cs
- Application.cs
- SRef.cs
- SemanticBasicElement.cs
- Debugger.cs
- Msec.cs
- ClusterUtils.cs
- TrackingQueryElement.cs
- SynchronizingStream.cs
- DataGridViewComboBoxColumn.cs
- ZoneLinkButton.cs
- Vector3D.cs
- IERequestCache.cs
- TraceSource.cs
- Baml2006SchemaContext.cs
- _TransmitFileOverlappedAsyncResult.cs
- SmiSettersStream.cs
- Point4DConverter.cs
- TdsParserStateObject.cs
- WebDisplayNameAttribute.cs
- SecurityResources.cs
- EdmComplexTypeAttribute.cs
- SqlReferenceCollection.cs
- FlowDocumentView.cs
- ElementAction.cs
- HttpInputStream.cs
- SelectedGridItemChangedEvent.cs
- TableTextElementCollectionInternal.cs
- IssuedTokenParametersEndpointAddressElement.cs
- XPathQilFactory.cs
- UnmanagedMemoryStream.cs
- ProxyFragment.cs
- MatrixStack.cs
- LicenseProviderAttribute.cs
- QueryHandler.cs
- ClientSponsor.cs
- FloatUtil.cs
- SqlFunctionAttribute.cs
- XMLUtil.cs
- Int64AnimationUsingKeyFrames.cs
- SignatureDescription.cs
- InlineUIContainer.cs
- CustomSignedXml.cs
- DataContractSerializer.cs
- HMACRIPEMD160.cs
- StyleCollectionEditor.cs
- HttpRequestTraceRecord.cs
- InputQueueChannelAcceptor.cs
- AddInDeploymentState.cs
- BamlBinaryReader.cs
- SqlCachedBuffer.cs
- PeerApplicationLaunchInfo.cs
- DataServiceQueryOfT.cs
- Int16KeyFrameCollection.cs
- TriggerAction.cs
- FrameAutomationPeer.cs
- HostingEnvironmentWrapper.cs
- ScriptResourceDefinition.cs
- FileSecurity.cs
- DeclarativeCatalogPart.cs
- DataControlLinkButton.cs
- HMACSHA384.cs
- TextEditorContextMenu.cs
- EnumConverter.cs
- InlineUIContainer.cs
- SqlCommand.cs
- PowerModeChangedEventArgs.cs
- TypeSystem.cs
- StylusButtonCollection.cs
- sqlcontext.cs
- NamespaceInfo.cs
- Int32KeyFrameCollection.cs
- DataGridTableStyleMappingNameEditor.cs
- AudioDeviceOut.cs
- dsa.cs
- IsolatedStorageException.cs