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; // 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
- CatalogPartDesigner.cs
- SplitterDesigner.cs
- IpcChannel.cs
- PageParser.cs
- InternalResources.cs
- StreamUpgradeProvider.cs
- NotImplementedException.cs
- ThreadExceptionDialog.cs
- MissingMemberException.cs
- TriState.cs
- TextElementEnumerator.cs
- ParserOptions.cs
- CriticalHandle.cs
- Quaternion.cs
- DependencyObjectValidator.cs
- ContentType.cs
- HitTestFilterBehavior.cs
- COAUTHIDENTITY.cs
- nulltextnavigator.cs
- RelationshipConstraintValidator.cs
- TableRowCollection.cs
- DataSourceXmlTextReader.cs
- ICollection.cs
- TextChangedEventArgs.cs
- SqlProcedureAttribute.cs
- TypeSystem.cs
- PasswordDeriveBytes.cs
- MarshalDirectiveException.cs
- SessionEndedEventArgs.cs
- NativeMethods.cs
- ValidatedControlConverter.cs
- OrderPreservingSpoolingTask.cs
- BitmapEffectState.cs
- HttpHeaderCollection.cs
- IteratorDescriptor.cs
- MetadataLocation.cs
- X509Utils.cs
- SqlBulkCopy.cs
- DataListComponentEditor.cs
- ActiveDocumentEvent.cs
- ServicePointManager.cs
- printdlgexmarshaler.cs
- KeyProperty.cs
- CodeRegionDirective.cs
- WorkflowMessageEventArgs.cs
- EventDescriptorCollection.cs
- streamingZipPartStream.cs
- DriveInfo.cs
- ParameterCollection.cs
- ExceptionRoutedEventArgs.cs
- DataBoundLiteralControl.cs
- ConfigurationPermission.cs
- XPathNavigatorReader.cs
- OdbcReferenceCollection.cs
- AsymmetricSignatureFormatter.cs
- AccessibilityHelperForXpWin2k3.cs
- XamlVector3DCollectionSerializer.cs
- CodeArgumentReferenceExpression.cs
- MetabaseServerConfig.cs
- ObjectManager.cs
- TimeSpanConverter.cs
- dataprotectionpermissionattribute.cs
- CodeObject.cs
- LinqDataSourceValidationException.cs
- MessageSecurityOverMsmqElement.cs
- AppDomainUnloadedException.cs
- IISUnsafeMethods.cs
- MultiPageTextView.cs
- HttpPostedFile.cs
- ActivityScheduledQuery.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- GregorianCalendarHelper.cs
- WindowsSlider.cs
- StatusBarDrawItemEvent.cs
- QueryOpeningEnumerator.cs
- RawMouseInputReport.cs
- GlobalItem.cs
- QilGeneratorEnv.cs
- VoiceSynthesis.cs
- FileRegion.cs
- HwndProxyElementProvider.cs
- SizeFConverter.cs
- SecurityManager.cs
- PersistenceProviderDirectory.cs
- XmlnsDefinitionAttribute.cs
- WinEventHandler.cs
- DataServiceRequestException.cs
- Gdiplus.cs
- MultipartIdentifier.cs
- XmlWrappingReader.cs
- ContentElementAutomationPeer.cs
- CatalogZone.cs
- FormatSettings.cs
- ScalarType.cs
- MenuTracker.cs
- GeometryHitTestResult.cs
- ComplexType.cs
- ManagementException.cs
- TrackingWorkflowEventArgs.cs
- SendActivityEventArgs.cs