Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataRowExtensions.cs
- ConstrainedDataObject.cs
- EntityClientCacheEntry.cs
- WebBrowserSiteBase.cs
- ParameterCollection.cs
- MetadataItemCollectionFactory.cs
- HeaderedContentControl.cs
- TriggerCollection.cs
- LambdaCompiler.Statements.cs
- SqlCrossApplyToCrossJoin.cs
- QilLiteral.cs
- ClientSideProviderDescription.cs
- Visitor.cs
- UnmanagedMemoryStreamWrapper.cs
- ListViewTableCell.cs
- XmlSchemaComplexContent.cs
- SQLSingleStorage.cs
- EntityDataSourceWrapperCollection.cs
- ToolBar.cs
- GridViewRowPresenterBase.cs
- httpapplicationstate.cs
- UpdateTranslator.cs
- FormViewDeletedEventArgs.cs
- RestHandlerFactory.cs
- TraceSwitch.cs
- SQLGuidStorage.cs
- InteropBitmapSource.cs
- GorillaCodec.cs
- DESCryptoServiceProvider.cs
- SR.Designer.cs
- MessageVersionConverter.cs
- DrawingAttributesDefaultValueFactory.cs
- StrokeIntersection.cs
- MDIControlStrip.cs
- tooltip.cs
- StorageComplexPropertyMapping.cs
- TypeGenericEnumerableViewSchema.cs
- ClientTarget.cs
- CryptoProvider.cs
- ConvertersCollection.cs
- VectorAnimationBase.cs
- XmlSerializerNamespaces.cs
- InkPresenterAutomationPeer.cs
- XmlNamespaceMapping.cs
- XmlNamespaceMapping.cs
- CountdownEvent.cs
- ByteStorage.cs
- SystemIPAddressInformation.cs
- AsymmetricKeyExchangeDeformatter.cs
- HttpServerVarsCollection.cs
- UpdateEventArgs.cs
- KerberosSecurityTokenProvider.cs
- Triplet.cs
- PermissionSetTriple.cs
- CompilerState.cs
- RequestSecurityToken.cs
- DesignUtil.cs
- prompt.cs
- ChameleonKey.cs
- WebBrowserSiteBase.cs
- WindowsScroll.cs
- ServiceContractGenerationContext.cs
- Calendar.cs
- HttpProfileBase.cs
- unitconverter.cs
- ThreadAbortException.cs
- SchemaObjectWriter.cs
- ConnectionInterfaceCollection.cs
- ContextStaticAttribute.cs
- QualifiedCellIdBoolean.cs
- XmlTypeMapping.cs
- DataGridViewColumn.cs
- TextCompositionEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- OutputCacheModule.cs
- HashFinalRequest.cs
- DebugHandleTracker.cs
- DynamicResourceExtensionConverter.cs
- CreateUserWizard.cs
- AspNetCompatibilityRequirementsMode.cs
- WebPartVerb.cs
- OracleDateTime.cs
- GlyphingCache.cs
- ImportContext.cs
- MeasurementDCInfo.cs
- XsdBuilder.cs
- MappableObjectManager.cs
- EventWaitHandleSecurity.cs
- WebProxyScriptElement.cs
- StickyNoteAnnotations.cs
- TransformationRules.cs
- LockedHandleGlyph.cs
- DelimitedListTraceListener.cs
- Faults.cs
- serverconfig.cs
- BaseValidator.cs
- GridViewRowPresenterBase.cs
- XmlAtomicValue.cs
- WorkflowRuntimeServiceElementCollection.cs
- SystemUdpStatistics.cs