Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: ContentTextElementAutomationPeer.cs // // Description: Base class for AutomationPeers associated with TextPattern. // //--------------------------------------------------------------------------- using System.Collections.Generic; // List using 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
- WindowsFormsHost.cs
- MediaElementAutomationPeer.cs
- CultureInfoConverter.cs
- SpellerHighlightLayer.cs
- Bezier.cs
- DrawingGroup.cs
- CompilerWrapper.cs
- DesignerActionTextItem.cs
- FontInfo.cs
- CharacterBufferReference.cs
- xml.cs
- PrinterResolution.cs
- Sentence.cs
- TiffBitmapDecoder.cs
- CompilerScope.cs
- shaperfactoryquerycacheentry.cs
- UpdateManifestForBrowserApplication.cs
- DrawingGroup.cs
- RequestTimeoutManager.cs
- Random.cs
- ContainerParaClient.cs
- NavigationHelper.cs
- Enlistment.cs
- CodeTryCatchFinallyStatement.cs
- TransformerTypeCollection.cs
- EncoderBestFitFallback.cs
- XmlNodeChangedEventManager.cs
- TableAutomationPeer.cs
- DateTimeConverter.cs
- EntityDataSourceUtil.cs
- WebBrowserBase.cs
- SHA512Managed.cs
- XPathNavigatorKeyComparer.cs
- WindowsListView.cs
- ObjectTypeMapping.cs
- DebugInfo.cs
- DesignerLoader.cs
- KnownTypeAttribute.cs
- SafeProcessHandle.cs
- AspCompat.cs
- Buffer.cs
- BinaryFormatter.cs
- shaperfactory.cs
- InternalConfigEventArgs.cs
- ResourcesChangeInfo.cs
- DataTableMapping.cs
- LockCookie.cs
- BufferModesCollection.cs
- ScriptResourceInfo.cs
- CodeArrayCreateExpression.cs
- Utility.cs
- ActivityDesigner.cs
- ResourcePool.cs
- FontDifferentiator.cs
- SystemIcons.cs
- System.Data_BID.cs
- LayoutDump.cs
- ExpressionConverter.cs
- EntityContainerEmitter.cs
- InfoCardTrace.cs
- PageParser.cs
- BatchStream.cs
- Properties.cs
- ExpandCollapseProviderWrapper.cs
- nulltextnavigator.cs
- TypeUsage.cs
- DetailsViewPageEventArgs.cs
- TypeUnloadedException.cs
- MatrixKeyFrameCollection.cs
- PartitionerStatic.cs
- RichTextBox.cs
- TransactionState.cs
- ipaddressinformationcollection.cs
- Select.cs
- TypeElement.cs
- ContractCodeDomInfo.cs
- RayHitTestParameters.cs
- HttpAsyncResult.cs
- ClientFormsIdentity.cs
- MimeParameter.cs
- PriorityBindingExpression.cs
- CodePrimitiveExpression.cs
- HtmlShim.cs
- DisplayNameAttribute.cs
- ExtentJoinTreeNode.cs
- Bookmark.cs
- PageStatePersister.cs
- IsolatedStoragePermission.cs
- ForwardPositionQuery.cs
- TextFindEngine.cs
- WebPartDescriptionCollection.cs
- DocumentXPathNavigator.cs
- SignedInfo.cs
- DataColumnCollection.cs
- ReflectionUtil.cs
- Trace.cs
- DockPattern.cs
- XmlUTF8TextWriter.cs
- basecomparevalidator.cs
- GridItemPatternIdentifiers.cs