Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusPointProperties.cs
- ListViewGroup.cs
- Convert.cs
- Reference.cs
- ExtenderControl.cs
- WebZone.cs
- PeerCollaboration.cs
- DataSourceConverter.cs
- MILUtilities.cs
- WithParamAction.cs
- ScopelessEnumAttribute.cs
- CounterSampleCalculator.cs
- AnimationTimeline.cs
- DataGridViewColumnConverter.cs
- FlagsAttribute.cs
- EndpointDispatcherTable.cs
- EmptyStringExpandableObjectConverter.cs
- XsltException.cs
- CacheOutputQuery.cs
- Figure.cs
- rsa.cs
- StringWriter.cs
- ContextStack.cs
- ConvertersCollection.cs
- PlatformNotSupportedException.cs
- TextSelection.cs
- EventLogStatus.cs
- NameValueConfigurationCollection.cs
- XmlReflectionMember.cs
- SafeIUnknown.cs
- ServiceModelStringsVersion1.cs
- XmlDataSource.cs
- PixelShader.cs
- BooleanSwitch.cs
- CompiledQueryCacheKey.cs
- Baml2006KnownTypes.cs
- DataServiceProcessingPipeline.cs
- RadioButton.cs
- MenuItemStyle.cs
- HostedImpersonationContext.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TrackingSection.cs
- MeasureData.cs
- ChtmlTextWriter.cs
- ApplicationTrust.cs
- Propagator.Evaluator.cs
- StorageMappingItemCollection.cs
- HorizontalAlignConverter.cs
- GroupBoxRenderer.cs
- XmlNamespaceManager.cs
- IDispatchConstantAttribute.cs
- CellTreeSimplifier.cs
- UnmanagedMarshal.cs
- DocumentReferenceCollection.cs
- InputBuffer.cs
- ActiveXContainer.cs
- arabicshape.cs
- JsonXmlDataContract.cs
- PrefixHandle.cs
- BaseCollection.cs
- BoundColumn.cs
- SHA1.cs
- FileInfo.cs
- Ref.cs
- LiteralTextParser.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ContextMarshalException.cs
- Pkcs7Signer.cs
- AmbientProperties.cs
- PageVisual.cs
- FilterEventArgs.cs
- PointLightBase.cs
- TemplatedMailWebEventProvider.cs
- DesignerGeometryHelper.cs
- TypeNameHelper.cs
- SvcFileManager.cs
- FormViewPageEventArgs.cs
- HttpRawResponse.cs
- VoiceSynthesis.cs
- ChangePasswordDesigner.cs
- TraceUtility.cs
- CollectionBuilder.cs
- CodeExporter.cs
- webbrowsersite.cs
- TextSelectionProcessor.cs
- Console.cs
- BinaryObjectWriter.cs
- RenderData.cs
- XPathDocumentBuilder.cs
- AsymmetricSignatureFormatter.cs
- ListViewItem.cs
- __Filters.cs
- LowerCaseStringConverter.cs
- CodeDOMUtility.cs
- Vector3dCollection.cs
- GcSettings.cs
- GenerateTemporaryTargetAssembly.cs
- WorkflowNamespace.cs
- MetadataPropertyAttribute.cs
- StickyNoteContentControl.cs