Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. //---------------------------------------------------------------------------- // // 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
- srgsitem.cs
- InstanceDataCollectionCollection.cs
- ObjectRef.cs
- TagPrefixAttribute.cs
- ConfigsHelper.cs
- ProviderIncompatibleException.cs
- MsmqIntegrationProcessProtocolHandler.cs
- PrintEvent.cs
- EnvironmentPermission.cs
- linebase.cs
- securitymgrsite.cs
- ExpressionPrefixAttribute.cs
- ButtonBaseDesigner.cs
- ExpressionBindingCollection.cs
- ServiceOperationInfoTypeConverter.cs
- HtmlEmptyTagControlBuilder.cs
- IgnoreFileBuildProvider.cs
- MessageDroppedTraceRecord.cs
- ConnectorSelectionGlyph.cs
- PerformanceCounterPermissionEntry.cs
- loginstatus.cs
- SelectionGlyphBase.cs
- ProfileServiceManager.cs
- RegexMatch.cs
- MetadataArtifactLoaderCompositeFile.cs
- MailDefinition.cs
- HtmlHead.cs
- CollectionViewSource.cs
- HttpClientProtocol.cs
- Classification.cs
- DayRenderEvent.cs
- StdValidatorsAndConverters.cs
- MessageBox.cs
- XslCompiledTransform.cs
- MissingSatelliteAssemblyException.cs
- MulticastOption.cs
- URIFormatException.cs
- Preprocessor.cs
- ApplicationGesture.cs
- ProcessRequestAsyncResult.cs
- HostingEnvironment.cs
- complextypematerializer.cs
- NativeCompoundFileAPIs.cs
- TemplateBindingExpressionConverter.cs
- BeginStoryboard.cs
- TextEditorMouse.cs
- LoadedOrUnloadedOperation.cs
- TrackingServices.cs
- CustomPeerResolverService.cs
- X509Logo.cs
- DBNull.cs
- DefaultValueTypeConverter.cs
- RemotingAttributes.cs
- HtmlInputReset.cs
- SubclassTypeValidator.cs
- SHA512Cng.cs
- SqlNode.cs
- EncoderReplacementFallback.cs
- BaseParaClient.cs
- parserscommon.cs
- GridViewAutomationPeer.cs
- FrameworkElementAutomationPeer.cs
- basenumberconverter.cs
- MenuBindingsEditor.cs
- HttpCacheVaryByContentEncodings.cs
- Win32Native.cs
- control.ime.cs
- NativeMethods.cs
- Constant.cs
- HttpCacheVaryByContentEncodings.cs
- StylusDevice.cs
- ActiveXHelper.cs
- XmlValidatingReaderImpl.cs
- CheckBox.cs
- SqlRewriteScalarSubqueries.cs
- PathFigureCollectionConverter.cs
- FileUtil.cs
- ApplicationDirectory.cs
- DataRowComparer.cs
- DBDataPermission.cs
- Padding.cs
- EntityStoreSchemaFilterEntry.cs
- Rect.cs
- FtpCachePolicyElement.cs
- _DisconnectOverlappedAsyncResult.cs
- Registry.cs
- Bold.cs
- DataServiceContext.cs
- NativeMethods.cs
- WebBrowser.cs
- PopupRootAutomationPeer.cs
- CompositeCollection.cs
- DataMemberFieldEditor.cs
- CacheChildrenQuery.cs
- SspiNegotiationTokenProviderState.cs
- ToolStripContentPanel.cs
- StorageTypeMapping.cs
- PartialCachingControl.cs
- TreeIterator.cs
- Tuple.cs