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
- TypeConverterAttribute.cs
- OperationAbortedException.cs
- ToolboxItemAttribute.cs
- FixedSOMPageConstructor.cs
- RsaSecurityToken.cs
- PrivacyNoticeBindingElementImporter.cs
- SafeLibraryHandle.cs
- FormsAuthentication.cs
- ConfigXmlSignificantWhitespace.cs
- UIElement.cs
- TypeHelpers.cs
- CollectionDataContractAttribute.cs
- BindingsCollection.cs
- SetStateDesigner.cs
- AccessedThroughPropertyAttribute.cs
- XPathNodeHelper.cs
- OutOfMemoryException.cs
- MimeObjectFactory.cs
- XmlAttributeProperties.cs
- DefaultSection.cs
- PrintDocument.cs
- NegatedCellConstant.cs
- DataServiceResponse.cs
- SqlGenerator.cs
- SatelliteContractVersionAttribute.cs
- CommonObjectSecurity.cs
- FlowLayoutSettings.cs
- XmlIlTypeHelper.cs
- ExtendedPropertyDescriptor.cs
- XmlSiteMapProvider.cs
- DataContractSerializerMessageContractImporter.cs
- SecurityCriticalDataForSet.cs
- UnaryExpressionHelper.cs
- WebUtility.cs
- BrowserDefinition.cs
- RoleManagerSection.cs
- CatalogPartCollection.cs
- SqlParameter.cs
- ObjectReferenceStack.cs
- DictionarySectionHandler.cs
- HwndHostAutomationPeer.cs
- NullableBoolConverter.cs
- PagesSection.cs
- DataTransferEventArgs.cs
- MDIClient.cs
- FileSystemWatcher.cs
- ToolStripSeparator.cs
- BuilderInfo.cs
- MarkupProperty.cs
- CacheAxisQuery.cs
- OletxDependentTransaction.cs
- WebPartVerb.cs
- ExpressionBindingCollection.cs
- SourceFilter.cs
- SerializableAttribute.cs
- XsltConvert.cs
- AlphaSortedEnumConverter.cs
- DataGridViewCellStateChangedEventArgs.cs
- UncommonField.cs
- RelativeSource.cs
- UnsafeNativeMethods.cs
- DebuggerAttributes.cs
- ProxyElement.cs
- OrderedHashRepartitionEnumerator.cs
- RuntimeConfigLKG.cs
- SqlUtil.cs
- Error.cs
- StatusBarItem.cs
- KeyboardDevice.cs
- ApplicationTrust.cs
- CodeIdentifiers.cs
- DataGridViewSelectedRowCollection.cs
- Rotation3DKeyFrameCollection.cs
- OracleDataReader.cs
- DataGridViewColumnDesigner.cs
- MulticastDelegate.cs
- DataGridViewBand.cs
- GeneralTransform3DGroup.cs
- SAPICategories.cs
- RtfControlWordInfo.cs
- HttpsHostedTransportConfiguration.cs
- ProfilePropertyNameValidator.cs
- WebRequestModulesSection.cs
- MemberProjectedSlot.cs
- LoginName.cs
- Pointer.cs
- ConnectorSelectionGlyph.cs
- AppSettingsReader.cs
- MeasureData.cs
- FileRecordSequence.cs
- Duration.cs
- ProfileSettingsCollection.cs
- RemoteWebConfigurationHostStream.cs
- SqlProviderManifest.cs
- MetadataItemEmitter.cs
- OutputScope.cs
- keycontainerpermission.cs
- IpcManager.cs
- DbProviderConfigurationHandler.cs
- DataListItem.cs