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; // Listusing 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 ListGetAutomationPeersFromRange(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
- RsaSecurityToken.cs
- TriggerActionCollection.cs
- SchemaImporterExtensionElement.cs
- ApplicationBuildProvider.cs
- CodeTypeReferenceCollection.cs
- IgnoreDataMemberAttribute.cs
- EmptyEnumerator.cs
- TypedRowGenerator.cs
- SqlMetaData.cs
- RegexParser.cs
- MdiWindowListItemConverter.cs
- DataError.cs
- StorageSetMapping.cs
- WebPartTransformerCollection.cs
- ToolStripScrollButton.cs
- HostedBindingBehavior.cs
- CapabilitiesPattern.cs
- CompiledAction.cs
- TcpSocketManager.cs
- CompositeScriptReference.cs
- HostExecutionContextManager.cs
- CompressEmulationStream.cs
- SelectedDatesCollection.cs
- XhtmlBasicPanelAdapter.cs
- KeyConstraint.cs
- Types.cs
- VirtualPathData.cs
- FontFaceLayoutInfo.cs
- MetadataReference.cs
- RectAnimationBase.cs
- LayoutManager.cs
- CodeStatementCollection.cs
- TranslateTransform.cs
- PropertyGridDesigner.cs
- Int64Animation.cs
- CryptoApi.cs
- SettingsPropertyWrongTypeException.cs
- ThemeableAttribute.cs
- EventLogTraceListener.cs
- MenuEventArgs.cs
- ServiceDefaults.cs
- SqlServices.cs
- SchemaNotation.cs
- Simplifier.cs
- NavigationPropertyEmitter.cs
- Application.cs
- EntityExpressionVisitor.cs
- Panel.cs
- DeadCharTextComposition.cs
- Ops.cs
- ElementUtil.cs
- RegisteredExpandoAttribute.cs
- FullTrustAssembliesSection.cs
- Evidence.cs
- MissingManifestResourceException.cs
- GeometryGroup.cs
- FixedSOMTextRun.cs
- DispatchWrapper.cs
- OleDbParameter.cs
- DecimalConstantAttribute.cs
- ZipArchive.cs
- KeyProperty.cs
- SEHException.cs
- FreezableOperations.cs
- EntityDataSourceValidationException.cs
- TileBrush.cs
- RuntimeCompatibilityAttribute.cs
- DataGridViewSelectedRowCollection.cs
- XmlName.cs
- UpnEndpointIdentity.cs
- OdbcTransaction.cs
- SettingsPropertyCollection.cs
- BamlCollectionHolder.cs
- GenericIdentity.cs
- HostingPreferredMapPath.cs
- StylusButtonCollection.cs
- BehaviorEditorPart.cs
- Main.cs
- OleDbEnumerator.cs
- Polygon.cs
- AmbiguousMatchException.cs
- NamedObjectList.cs
- WebContext.cs
- Roles.cs
- HttpModuleAction.cs
- BufferedConnection.cs
- ErrorStyle.cs
- MobileSysDescriptionAttribute.cs
- SecurityException.cs
- ObjectDataSourceStatusEventArgs.cs
- MergeExecutor.cs
- Stylesheet.cs
- newitemfactory.cs
- EventBuilder.cs
- securitycriticaldata.cs
- ImageInfo.cs
- DecimalAnimationUsingKeyFrames.cs
- LinkArea.cs
- InternalControlCollection.cs
- HtmlInputImage.cs