Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ContentTextAutomationPeer.cs / 1305600 / 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
- SimpleHandlerBuildProvider.cs
- ComponentRenameEvent.cs
- SafeLocalAllocation.cs
- StandardToolWindows.cs
- UniqueSet.cs
- CharacterMetricsDictionary.cs
- ColorTransformHelper.cs
- ISAPIWorkerRequest.cs
- BreakRecordTable.cs
- StreamUpdate.cs
- QilExpression.cs
- OdbcRowUpdatingEvent.cs
- InstallerTypeAttribute.cs
- XmlMemberMapping.cs
- PaginationProgressEventArgs.cs
- GroupBox.cs
- CfgParser.cs
- _ListenerRequestStream.cs
- Pointer.cs
- TransformCollection.cs
- StringSource.cs
- HierarchicalDataSourceIDConverter.cs
- XmlEventCache.cs
- FileUpload.cs
- MailFileEditor.cs
- InvalidateEvent.cs
- BlurEffect.cs
- storepermissionattribute.cs
- SecurityToken.cs
- WebPartConnection.cs
- ExpressionVisitor.cs
- ConditionCollection.cs
- RolePrincipal.cs
- Vector3DCollectionConverter.cs
- MenuItemStyleCollection.cs
- MSAAEventDispatcher.cs
- XPathArrayIterator.cs
- CatalogPartChrome.cs
- AnimatedTypeHelpers.cs
- precedingquery.cs
- StaticSiteMapProvider.cs
- BuildProvider.cs
- EventTask.cs
- RootBrowserWindowProxy.cs
- ArgumentsParser.cs
- Resources.Designer.cs
- DesignerView.Commands.cs
- HttpModulesSection.cs
- ProfilePropertySettings.cs
- EventWaitHandle.cs
- CompareValidator.cs
- SyndicationLink.cs
- SafeCryptHandles.cs
- XmlSchemaSimpleTypeUnion.cs
- SetterBase.cs
- ApplicationSecurityInfo.cs
- ObjectQueryProvider.cs
- ColorConvertedBitmap.cs
- BitmapEffectState.cs
- FontFaceLayoutInfo.cs
- CodePageUtils.cs
- DES.cs
- ActivationServices.cs
- DataGridAutomationPeer.cs
- CapiSafeHandles.cs
- ToolstripProfessionalRenderer.cs
- ParameterReplacerVisitor.cs
- SystemIPInterfaceProperties.cs
- TextRenderer.cs
- Environment.cs
- FileInfo.cs
- ContainerCodeDomSerializer.cs
- SynchronizedInputPattern.cs
- BindingRestrictions.cs
- Verify.cs
- PartialCachingControl.cs
- FormViewInsertEventArgs.cs
- MultiTrigger.cs
- LoginCancelEventArgs.cs
- TextDecorationCollection.cs
- HitTestDrawingContextWalker.cs
- ClientConvert.cs
- SmiEventSink_Default.cs
- WebPartHelpVerb.cs
- AppliesToBehaviorDecisionTable.cs
- WebPartConnectionsCloseVerb.cs
- RoleBoolean.cs
- LogSwitch.cs
- Wildcard.cs
- XPathNavigatorKeyComparer.cs
- GlobalEventManager.cs
- RuleRef.cs
- Deflater.cs
- GridViewUpdateEventArgs.cs
- XmlIlVisitor.cs
- PropertyKey.cs
- LockedHandleGlyph.cs
- XMLSchema.cs
- DesignerTransaction.cs
- DataGridViewCellEventArgs.cs