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
- ObjectItemCollection.cs
- HTTPNotFoundHandler.cs
- FilterQuery.cs
- CodeCommentStatementCollection.cs
- SoapDocumentServiceAttribute.cs
- MonikerSyntaxException.cs
- UriParserTemplates.cs
- BamlMapTable.cs
- ActionFrame.cs
- DocumentViewerBase.cs
- AdRotator.cs
- HttpModuleActionCollection.cs
- NameValuePair.cs
- MonitorWrapper.cs
- SplineQuaternionKeyFrame.cs
- XmlQueryType.cs
- CancellationTokenSource.cs
- ParentQuery.cs
- PerformanceCountersElement.cs
- BaseContextMenu.cs
- DrawListViewSubItemEventArgs.cs
- VerificationAttribute.cs
- SmtpTransport.cs
- Wizard.cs
- SqlCacheDependencyDatabase.cs
- SafeLocalMemHandle.cs
- CheckBox.cs
- InternalSafeNativeMethods.cs
- Math.cs
- EdmSchemaError.cs
- FaultImportOptions.cs
- DataGridPageChangedEventArgs.cs
- ListViewGroupItemCollection.cs
- XmlSchemaComplexType.cs
- TextMarkerSource.cs
- XmlToDatasetMap.cs
- TextWriterTraceListener.cs
- DSASignatureDeformatter.cs
- DetailsViewModeEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- SchemaTableOptionalColumn.cs
- ITreeGenerator.cs
- TransformConverter.cs
- FrameworkElementFactoryMarkupObject.cs
- odbcmetadatafactory.cs
- Clipboard.cs
- TiffBitmapDecoder.cs
- FontUnitConverter.cs
- ResourceExpressionBuilder.cs
- AccessDataSourceView.cs
- VerificationException.cs
- PointAnimationUsingPath.cs
- ObjectItemAttributeAssemblyLoader.cs
- BezierSegment.cs
- HttpSessionStateBase.cs
- HMACSHA384.cs
- XmlReflectionMember.cs
- GacUtil.cs
- DebugView.cs
- GridViewAutomationPeer.cs
- HttpClientCertificate.cs
- ObjectDataSourceDisposingEventArgs.cs
- FilteredAttributeCollection.cs
- SchemaCollectionPreprocessor.cs
- ScrollItemProviderWrapper.cs
- DocumentPage.cs
- XmlChildEnumerator.cs
- SplitContainer.cs
- DataColumnMapping.cs
- XmlIterators.cs
- TableLayoutPanel.cs
- TemplateXamlTreeBuilder.cs
- MarginsConverter.cs
- QilFactory.cs
- ChannelRequirements.cs
- sqlnorm.cs
- NamedObject.cs
- EdmSchemaAttribute.cs
- BitmapScalingModeValidation.cs
- FilteredXmlReader.cs
- Model3D.cs
- HybridDictionary.cs
- GestureRecognizer.cs
- Preprocessor.cs
- EntitySqlQueryBuilder.cs
- LocatorGroup.cs
- LinkClickEvent.cs
- ACE.cs
- TdsParserStaticMethods.cs
- WebException.cs
- XmlElement.cs
- BaseTreeIterator.cs
- XmlSchemaInfo.cs
- ExpressionHelper.cs
- Configuration.cs
- StringPropertyBuilder.cs
- StatusStrip.cs
- RightsDocument.cs
- StdValidatorsAndConverters.cs
- SpellCheck.cs