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
- SrgsItemList.cs
- ClientConfigurationHost.cs
- VisualStyleElement.cs
- GridView.cs
- ControlValuePropertyAttribute.cs
- Color.cs
- CfgSemanticTag.cs
- PrivateFontCollection.cs
- ConstructorExpr.cs
- BufferAllocator.cs
- FixedTextBuilder.cs
- FontCacheLogic.cs
- CustomPopupPlacement.cs
- BitmapPalettes.cs
- SerialStream.cs
- PointF.cs
- PageStatePersister.cs
- BamlCollectionHolder.cs
- DurationConverter.cs
- FileDialog_Vista_Interop.cs
- SecurityToken.cs
- PointAnimation.cs
- ContractReference.cs
- ObjectDataSourceMethodEventArgs.cs
- ClientType.cs
- X509UI.cs
- HttpWriter.cs
- UnescapedXmlDiagnosticData.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- UIElementIsland.cs
- ConfigurationElementProperty.cs
- SharedPersonalizationStateInfo.cs
- AnnotationStore.cs
- ValidationEventArgs.cs
- XmlSchemaCollection.cs
- PenCursorManager.cs
- TextOutput.cs
- DataGridViewCellMouseEventArgs.cs
- EventMap.cs
- GroupBox.cs
- PathFigureCollectionValueSerializer.cs
- SendActivityEventArgs.cs
- DataControlFieldCell.cs
- MemberProjectionIndex.cs
- PrimitiveList.cs
- PageCatalogPart.cs
- MetadataUtil.cs
- DisposableCollectionWrapper.cs
- _SpnDictionary.cs
- StylusPointProperties.cs
- AppLevelCompilationSectionCache.cs
- OdbcEnvironment.cs
- SynchronizedDispatch.cs
- COM2ExtendedBrowsingHandler.cs
- ReaderContextStackData.cs
- loginstatus.cs
- OracleException.cs
- XmlTypeMapping.cs
- EnumerableCollectionView.cs
- TextSelection.cs
- SqlServices.cs
- ListView.cs
- NamedObject.cs
- DbMetaDataFactory.cs
- DataControlFieldCell.cs
- LogEntrySerializer.cs
- ConsoleEntryPoint.cs
- BindingContext.cs
- HashCryptoHandle.cs
- WebRequestModuleElement.cs
- ExpressionBindingsDialog.cs
- DataBinder.cs
- LockCookie.cs
- ThreadStateException.cs
- CodeTypeDeclaration.cs
- TypeCacheManager.cs
- SubstitutionList.cs
- XPathLexer.cs
- GrammarBuilderBase.cs
- WizardPanel.cs
- DataGridCell.cs
- VirtualDirectoryMappingCollection.cs
- LoginNameDesigner.cs
- BasicCommandTreeVisitor.cs
- CodeRegionDirective.cs
- BaseDataList.cs
- Exceptions.cs
- DefaultValueAttribute.cs
- SkewTransform.cs
- ExpandSegmentCollection.cs
- AnimatedTypeHelpers.cs
- PageFunction.cs
- TypeSystemProvider.cs
- TableLayoutStyle.cs
- XmlSchemaSimpleContentExtension.cs
- PropVariant.cs
- Main.cs
- AddInIpcChannel.cs
- BinaryObjectReader.cs
- TraceLevelStore.cs