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
- Command.cs
- StateChangeEvent.cs
- ProcessInfo.cs
- SqlTopReducer.cs
- PeerNameRecord.cs
- TimeSpanValidatorAttribute.cs
- QilSortKey.cs
- TextTreePropertyUndoUnit.cs
- KeyboardDevice.cs
- XmlSchemaImporter.cs
- AsyncResult.cs
- WasEndpointConfigContainer.cs
- FixedSOMGroup.cs
- XmlAttributeCache.cs
- SqlDataSourceCustomCommandPanel.cs
- GridView.cs
- XmlQuerySequence.cs
- DataGridItem.cs
- SystemIcmpV4Statistics.cs
- DateTimeConverter.cs
- IPHostEntry.cs
- DrawingVisualDrawingContext.cs
- ConnectionStringSettingsCollection.cs
- WriterOutput.cs
- Brush.cs
- PrincipalPermissionMode.cs
- DateTimeConverter.cs
- TreeNodeEventArgs.cs
- TrailingSpaceComparer.cs
- ImageList.cs
- WebPartUtil.cs
- DetailsViewModeEventArgs.cs
- ValueTable.cs
- DesignerCommandAdapter.cs
- ProtocolsConfigurationHandler.cs
- SaveFileDialogDesigner.cs
- RegexStringValidator.cs
- ViewBox.cs
- Content.cs
- ResolveResponseInfo.cs
- DesignerView.xaml.cs
- HostingEnvironmentException.cs
- SafeCoTaskMem.cs
- CombinedGeometry.cs
- DataGridLinkButton.cs
- ProfileBuildProvider.cs
- XmlSchemaDocumentation.cs
- Graph.cs
- ThrowHelper.cs
- WindowsScrollBarBits.cs
- PnrpPeerResolverElement.cs
- SelectionItemProviderWrapper.cs
- DocumentOrderQuery.cs
- ConsumerConnectionPointCollection.cs
- ListenerConstants.cs
- XPathNodeList.cs
- SafeRsaProviderHandle.cs
- InplaceBitmapMetadataWriter.cs
- KeyInfo.cs
- TableDetailsCollection.cs
- BoundingRectTracker.cs
- HttpAsyncResult.cs
- WindowsAuthenticationEventArgs.cs
- ButtonFlatAdapter.cs
- NetworkInformationException.cs
- StateValidator.cs
- RenderingBiasValidation.cs
- DataView.cs
- Button.cs
- SqlDataSourceCommandEventArgs.cs
- UntrustedRecipientException.cs
- MimeMultiPart.cs
- OleDbParameterCollection.cs
- OleDbWrapper.cs
- TypeNameConverter.cs
- safesecurityhelperavalon.cs
- EntityChangedParams.cs
- SQLUtility.cs
- LogSwitch.cs
- InternalBase.cs
- PeerNameRegistration.cs
- CodeAttributeDeclarationCollection.cs
- Drawing.cs
- SoapConverter.cs
- WmlCalendarAdapter.cs
- IDQuery.cs
- XmlNamedNodeMap.cs
- IIS7UserPrincipal.cs
- complextypematerializer.cs
- columnmapfactory.cs
- TableAdapterManagerNameHandler.cs
- InteropBitmapSource.cs
- CookieParameter.cs
- SafeRightsManagementSessionHandle.cs
- RightNameExpirationInfoPair.cs
- ByteStreamGeometryContext.cs
- ThreadPool.cs
- _OverlappedAsyncResult.cs
- MetadataProperty.cs
- CardSpaceSelector.cs