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
- SafeThreadHandle.cs
- CompiledQuery.cs
- HostingPreferredMapPath.cs
- ExtendedPropertyDescriptor.cs
- dtdvalidator.cs
- UnauthorizedAccessException.cs
- Gdiplus.cs
- WorkflowQueue.cs
- DataViewListener.cs
- RowSpanVector.cs
- httpstaticobjectscollection.cs
- GroupBox.cs
- HttpPostedFile.cs
- PerfService.cs
- JournalEntry.cs
- InternalDispatchObject.cs
- PolicyValidationException.cs
- HwndMouseInputProvider.cs
- BufferedStream2.cs
- TypeSystem.cs
- Baml2006ReaderFrame.cs
- PasswordBox.cs
- SqlRetyper.cs
- MinimizableAttributeTypeConverter.cs
- DataGridColumnCollection.cs
- PackagePart.cs
- TableStyle.cs
- CodeMemberEvent.cs
- AttributeAction.cs
- BasicHttpSecurityMode.cs
- ToolStrip.cs
- NullableLongMinMaxAggregationOperator.cs
- ExpandableObjectConverter.cs
- DBBindings.cs
- MenuStrip.cs
- InputScope.cs
- COM2AboutBoxPropertyDescriptor.cs
- XmlExpressionDumper.cs
- RemoveStoryboard.cs
- NavigationWindow.cs
- FormViewPageEventArgs.cs
- ThemeDictionaryExtension.cs
- SessionEndingCancelEventArgs.cs
- ConfigurationElementProperty.cs
- UnsafeNativeMethods.cs
- ExpressionBuilder.cs
- MemberProjectedSlot.cs
- ClientOptions.cs
- StylusCaptureWithinProperty.cs
- CheckBox.cs
- RightsManagementInformation.cs
- _DomainName.cs
- CharacterMetricsDictionary.cs
- Stream.cs
- StatusBar.cs
- TableDetailsCollection.cs
- Item.cs
- ControlParameter.cs
- SlipBehavior.cs
- DataGridViewBindingCompleteEventArgs.cs
- ExtendedPropertyInfo.cs
- FixedHyperLink.cs
- XmlILAnnotation.cs
- PolicyLevel.cs
- MatrixTransform.cs
- CatalogZoneBase.cs
- UriSection.cs
- KeyboardDevice.cs
- DeferrableContentConverter.cs
- TransferRequestHandler.cs
- WFItemsToSpacerVisibility.cs
- SerialStream.cs
- LinqExpressionNormalizer.cs
- ToolboxDataAttribute.cs
- SingleAnimation.cs
- XmlHierarchicalEnumerable.cs
- XmlSchemaValidationException.cs
- Timer.cs
- AppPool.cs
- StringAnimationUsingKeyFrames.cs
- SqlRewriteScalarSubqueries.cs
- DBConnectionString.cs
- SchemaConstraints.cs
- AddInProcess.cs
- EnumerableCollectionView.cs
- _IPv4Address.cs
- DescendentsWalkerBase.cs
- CopyNodeSetAction.cs
- PrimaryKeyTypeConverter.cs
- SecurityContextKeyIdentifierClause.cs
- GroupBoxRenderer.cs
- DataServiceQuery.cs
- InputLangChangeRequestEvent.cs
- DbConnectionPoolGroup.cs
- PermissionRequestEvidence.cs
- Application.cs
- RNGCryptoServiceProvider.cs
- LineVisual.cs
- InitializationEventAttribute.cs
- ServicePointManager.cs