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
- PathSegment.cs
- QuaternionAnimation.cs
- ImageListStreamer.cs
- TiffBitmapDecoder.cs
- TreeIterator.cs
- BamlRecordWriter.cs
- MessagePartSpecification.cs
- XamlClipboardData.cs
- AdapterSwitches.cs
- DecoderFallback.cs
- ControlEvent.cs
- XmlQueryContext.cs
- ScriptHandlerFactory.cs
- UpdateManifestForBrowserApplication.cs
- UnitySerializationHolder.cs
- Overlapped.cs
- QuaternionAnimationBase.cs
- CachedPathData.cs
- SessionStateItemCollection.cs
- Substitution.cs
- TemplateControlBuildProvider.cs
- EntityDataSourceChangedEventArgs.cs
- OdbcParameter.cs
- SapiRecognizer.cs
- Soap.cs
- HtmlInputImage.cs
- HttpValueCollection.cs
- XmlDocumentType.cs
- PenContexts.cs
- ManualResetEvent.cs
- XsltLibrary.cs
- QueryOutputWriter.cs
- MailMessageEventArgs.cs
- Converter.cs
- QueryOpeningEnumerator.cs
- KeyValueSerializer.cs
- DropTarget.cs
- UnsafeNetInfoNativeMethods.cs
- TemplatingOptionsDialog.cs
- PropertyEmitterBase.cs
- _ShellExpression.cs
- WebRequestModuleElement.cs
- UnSafeCharBuffer.cs
- NetTcpSecurity.cs
- MouseCaptureWithinProperty.cs
- EntityDataSourceDataSelection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SortQuery.cs
- Int32RectConverter.cs
- FileAuthorizationModule.cs
- indexingfiltermarshaler.cs
- TreeIterator.cs
- InkPresenter.cs
- RoleGroupCollectionEditor.cs
- BasicCommandTreeVisitor.cs
- Typeface.cs
- SecurityManager.cs
- RuleEngine.cs
- ObjectViewQueryResultData.cs
- CompoundFileDeflateTransform.cs
- Marshal.cs
- FtpCachePolicyElement.cs
- BaseValidator.cs
- BoundField.cs
- GridViewPageEventArgs.cs
- MimeTypeAttribute.cs
- ProcessHostMapPath.cs
- GridViewRowEventArgs.cs
- externdll.cs
- DataViewManager.cs
- HotCommands.cs
- PasswordDeriveBytes.cs
- ZipIOLocalFileHeader.cs
- FilterFactory.cs
- Stack.cs
- CqlParser.cs
- RemotingServices.cs
- TableItemPattern.cs
- TypeToken.cs
- MethodBuilder.cs
- FtpWebRequest.cs
- BinaryWriter.cs
- SecurityUtils.cs
- DataGridViewCellLinkedList.cs
- DynamicRenderer.cs
- LinearGradientBrush.cs
- DataGridState.cs
- StopRoutingHandler.cs
- Fx.cs
- OptimalBreakSession.cs
- PaperSize.cs
- RangeContentEnumerator.cs
- LoginUtil.cs
- CodeObject.cs
- Quaternion.cs
- AssociationSetMetadata.cs
- AssemblyHash.cs
- DesignSurfaceEvent.cs
- PolygonHotSpot.cs
- LambdaCompiler.ControlFlow.cs