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
- SmtpDigestAuthenticationModule.cs
- SqlDataAdapter.cs
- Transactions.cs
- XhtmlConformanceSection.cs
- PointCollection.cs
- Array.cs
- DataObjectAttribute.cs
- EarlyBoundInfo.cs
- ScopedKnownTypes.cs
- DotAtomReader.cs
- SuppressMessageAttribute.cs
- ActionFrame.cs
- HttpHandlersSection.cs
- TargetConverter.cs
- safePerfProviderHandle.cs
- TypeReference.cs
- PrintDialog.cs
- XmlDigitalSignatureProcessor.cs
- TiffBitmapDecoder.cs
- StorageEntitySetMapping.cs
- SqlClientWrapperSmiStream.cs
- HttpServerUtilityBase.cs
- SystemInfo.cs
- ColorAnimation.cs
- DoubleConverter.cs
- FormDocumentDesigner.cs
- PrimarySelectionGlyph.cs
- BindUriHelper.cs
- ToolBarButton.cs
- MenuItemStyle.cs
- NullEntityWrapper.cs
- DataBinder.cs
- TypedReference.cs
- StorageModelBuildProvider.cs
- StylusPointProperty.cs
- WinOEToolBoxItem.cs
- Model3DGroup.cs
- RIPEMD160Managed.cs
- EasingFunctionBase.cs
- ContextMenuService.cs
- XmlReflectionMember.cs
- PeerCollaboration.cs
- CursorConverter.cs
- TextUtf8RawTextWriter.cs
- EpmAttributeNameBuilder.cs
- GroupQuery.cs
- ExecutionTracker.cs
- SiteOfOriginPart.cs
- FrameworkElementFactory.cs
- DataPointer.cs
- ExpressionWriter.cs
- TableCell.cs
- DataGridViewBand.cs
- BooleanExpr.cs
- Regex.cs
- DataColumnMappingCollection.cs
- SqlParameterCollection.cs
- RsaKeyIdentifierClause.cs
- DesignerActionMethodItem.cs
- RegexParser.cs
- SymbolTable.cs
- AssemblyBuilderData.cs
- MatrixAnimationUsingPath.cs
- ArraySortHelper.cs
- ReliableDuplexSessionChannel.cs
- BindingEntityInfo.cs
- SymLanguageType.cs
- ELinqQueryState.cs
- OutputCacheSettingsSection.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- DataServiceResponse.cs
- MinMaxParagraphWidth.cs
- TextAnchor.cs
- EncodedStreamFactory.cs
- DocumentPaginator.cs
- ConnectionsZoneDesigner.cs
- GeneralTransform.cs
- TimeoutException.cs
- RadioButtonFlatAdapter.cs
- SettingsSection.cs
- PersistenceContext.cs
- PreloadedPackages.cs
- AssociationSetEnd.cs
- ExtensionCollection.cs
- SectionXmlInfo.cs
- SectionInformation.cs
- GPPOINT.cs
- OdbcConnectionHandle.cs
- CompatibleComparer.cs
- BitmapEffectGroup.cs
- MemoryResponseElement.cs
- XPathSelectionIterator.cs
- Compress.cs
- IsolatedStorageSecurityState.cs
- ListBoxAutomationPeer.cs
- MailWriter.cs
- ToolStripItem.cs
- DbProviderFactoriesConfigurationHandler.cs
- HandleCollector.cs
- SyndicationItem.cs