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
- XmlCDATASection.cs
- PrincipalPermission.cs
- SystemIcmpV6Statistics.cs
- SqlFormatter.cs
- XslCompiledTransform.cs
- XPathDescendantIterator.cs
- SID.cs
- CodeVariableDeclarationStatement.cs
- EditingCommands.cs
- XPathExpr.cs
- EntityConnectionStringBuilder.cs
- ImpersonateTokenRef.cs
- ObservableCollection.cs
- RegexWorker.cs
- SynchronizingStream.cs
- SqlStream.cs
- WmlPhoneCallAdapter.cs
- ReservationCollection.cs
- SelectionPattern.cs
- MappingSource.cs
- DataContractSerializerOperationBehavior.cs
- ExtenderProviderService.cs
- ObjectSpanRewriter.cs
- UshortList2.cs
- ResourceProperty.cs
- DataGridLinkButton.cs
- ListViewItemEventArgs.cs
- LinearKeyFrames.cs
- RenderingBiasValidation.cs
- BoolExpressionVisitors.cs
- CompositeActivityMarkupSerializer.cs
- OleDbErrorCollection.cs
- DynamicVirtualDiscoSearcher.cs
- WindowsComboBox.cs
- Scene3D.cs
- ItemsControl.cs
- WebPartDesigner.cs
- QuotedStringFormatReader.cs
- ValueExpressions.cs
- InputBinding.cs
- LineServices.cs
- RectangleF.cs
- EdmConstants.cs
- BinaryWriter.cs
- TimersDescriptionAttribute.cs
- ContentElementAutomationPeer.cs
- MessageDroppedTraceRecord.cs
- StyleSelector.cs
- DataServiceConfiguration.cs
- ScriptReferenceBase.cs
- TreePrinter.cs
- WorkflowOperationBehavior.cs
- LinkDescriptor.cs
- CalculatedColumn.cs
- updatecommandorderer.cs
- ValidationRule.cs
- FlowchartDesigner.Helpers.cs
- GZipDecoder.cs
- WebHttpSecurity.cs
- _NetRes.cs
- StateManagedCollection.cs
- DbConnectionHelper.cs
- SlipBehavior.cs
- MouseGestureConverter.cs
- XmlSchemaSimpleTypeList.cs
- EntityProxyTypeInfo.cs
- WorkflowDataContext.cs
- EventLogPermissionHolder.cs
- TextSpanModifier.cs
- EntityDesignerBuildProvider.cs
- StaticExtension.cs
- GridViewEditEventArgs.cs
- SoapEnumAttribute.cs
- ChangeDirector.cs
- WorkflowServiceAttributes.cs
- ConfigurationValidatorBase.cs
- ChannelManager.cs
- UnionCqlBlock.cs
- OutputCacheSection.cs
- MembershipSection.cs
- InputLangChangeRequestEvent.cs
- FactoryRecord.cs
- ProviderConnectionPointCollection.cs
- SqlConnectionString.cs
- CreateUserWizardDesigner.cs
- SuppressMergeCheckAttribute.cs
- MdiWindowListStrip.cs
- SafeFileHandle.cs
- Trigger.cs
- COM2PropertyDescriptor.cs
- Profiler.cs
- ProfileProvider.cs
- IERequestCache.cs
- RedirectionProxy.cs
- TranslateTransform.cs
- DockPanel.cs
- Rotation3DAnimationUsingKeyFrames.cs
- SqlClientFactory.cs
- DesignTimeVisibleAttribute.cs
- ContentPathSegment.cs