Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataFieldConverter.cs
- HttpException.cs
- _CommandStream.cs
- ScriptingScriptResourceHandlerSection.cs
- TokenFactoryBase.cs
- SqlInternalConnection.cs
- CollectionDataContractAttribute.cs
- XmlSubtreeReader.cs
- HtmlInputHidden.cs
- DataGridColumnHeaderAutomationPeer.cs
- HtmlWindowCollection.cs
- ByteStack.cs
- Rotation3D.cs
- BaseCAMarshaler.cs
- WorkflowInstanceExtensionManager.cs
- TagMapInfo.cs
- CodeMemberProperty.cs
- ImmutableAssemblyCacheEntry.cs
- ToolStripSplitButton.cs
- MailMessageEventArgs.cs
- CodeCommentStatementCollection.cs
- ChangeTracker.cs
- ClientTarget.cs
- KnownTypes.cs
- DataGridRowHeaderAutomationPeer.cs
- ErrorEventArgs.cs
- ScriptIgnoreAttribute.cs
- CellLabel.cs
- SafeTokenHandle.cs
- XPathNodeHelper.cs
- ChainOfDependencies.cs
- DataControlCommands.cs
- ReadOnlyPropertyMetadata.cs
- EdmItemCollection.OcAssemblyCache.cs
- _OSSOCK.cs
- NavigationProgressEventArgs.cs
- FontFaceLayoutInfo.cs
- ScriptReference.cs
- ResourcesBuildProvider.cs
- ObjectStorage.cs
- GridViewDeleteEventArgs.cs
- datacache.cs
- SelectedGridItemChangedEvent.cs
- MultiSelectRootGridEntry.cs
- MsmqHostedTransportManager.cs
- WebZone.cs
- ProbeMatchesApril2005.cs
- BaseDataBoundControl.cs
- WaitForChangedResult.cs
- EntityParameter.cs
- ImageFormatConverter.cs
- CodeTypeReferenceCollection.cs
- EntityModelBuildProvider.cs
- AbstractSvcMapFileLoader.cs
- HandlerBase.cs
- PrtTicket_Public.cs
- DEREncoding.cs
- MenuItemCollectionEditor.cs
- SingleConverter.cs
- AccessDataSourceDesigner.cs
- SqlConnectionFactory.cs
- _HTTPDateParse.cs
- SymbolPair.cs
- InternalEnumValidator.cs
- FileDataSourceCache.cs
- XmlNode.cs
- ApplicationSecurityManager.cs
- UnaryNode.cs
- XmlSchemaProviderAttribute.cs
- NavigationPropertyEmitter.cs
- EntityViewGenerator.cs
- GroupBox.cs
- SmtpNetworkElement.cs
- DrawingDrawingContext.cs
- CoordinationService.cs
- XsltArgumentList.cs
- PropertyMappingExceptionEventArgs.cs
- SqlEnums.cs
- InkCanvasSelectionAdorner.cs
- XmlElementList.cs
- NavigationWindow.cs
- DbQueryCommandTree.cs
- DocumentDesigner.cs
- Hash.cs
- SortFieldComparer.cs
- JournalEntry.cs
- cookieexception.cs
- SimpleApplicationHost.cs
- ListControlBuilder.cs
- CurrencyManager.cs
- TextEditorMouse.cs
- TableCell.cs
- WeakReferenceList.cs
- AbandonedMutexException.cs
- basecomparevalidator.cs
- TypeUtil.cs
- ConnectionStringsExpressionBuilder.cs
- Timer.cs
- CodeGroup.cs
- ObjectStateManager.cs