Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridViewUtilities.cs
- WsdlBuildProvider.cs
- HttpPostProtocolReflector.cs
- BigInt.cs
- UInt16.cs
- CalendarTable.cs
- NetworkStream.cs
- DataGridViewBand.cs
- UpdateManifestForBrowserApplication.cs
- WorkflowOwnershipException.cs
- SetStoryboardSpeedRatio.cs
- _LocalDataStore.cs
- TTSEvent.cs
- TextPenaltyModule.cs
- SiteMapPath.cs
- GradientStop.cs
- BaseCodePageEncoding.cs
- OptionalRstParameters.cs
- FontNamesConverter.cs
- Stack.cs
- SqlDataSourceView.cs
- CompModSwitches.cs
- NGCSerializerAsync.cs
- AppDomainEvidenceFactory.cs
- NameScopePropertyAttribute.cs
- SystemTcpStatistics.cs
- BezierSegment.cs
- Decoder.cs
- HttpWriter.cs
- Symbol.cs
- BindingsCollection.cs
- NameValueCollection.cs
- MeasureItemEvent.cs
- AffineTransform3D.cs
- FaultConverter.cs
- DataGridViewDataConnection.cs
- newinstructionaction.cs
- Pair.cs
- TypeSource.cs
- safelinkcollection.cs
- SBCSCodePageEncoding.cs
- WinInetCache.cs
- ZipIOCentralDirectoryFileHeader.cs
- ConfigXmlElement.cs
- SimpleTypesSurrogate.cs
- ConfigUtil.cs
- ComponentConverter.cs
- DecimalStorage.cs
- CodeTypeDelegate.cs
- ColumnReorderedEventArgs.cs
- HttpsTransportBindingElement.cs
- Double.cs
- BorderGapMaskConverter.cs
- Transform.cs
- UnionCodeGroup.cs
- Adorner.cs
- HttpCacheVaryByContentEncodings.cs
- DebugView.cs
- TableStyle.cs
- XPathNodeIterator.cs
- RecordManager.cs
- RawStylusInput.cs
- baseaxisquery.cs
- _FtpDataStream.cs
- UInt32Converter.cs
- HostExecutionContextManager.cs
- ItemCheckedEvent.cs
- SuppressMessageAttribute.cs
- ResourceDescriptionAttribute.cs
- ContextProperty.cs
- HandlerFactoryWrapper.cs
- SamlSecurityToken.cs
- BamlResourceSerializer.cs
- XmlEventCache.cs
- InstanceHandle.cs
- OracleBoolean.cs
- RegexStringValidatorAttribute.cs
- ListBoxAutomationPeer.cs
- Run.cs
- AddInAdapter.cs
- Queue.cs
- AssemblyUtil.cs
- DataBinding.cs
- PropertyStore.cs
- PropertyIdentifier.cs
- ConnectionManagementElement.cs
- DesignTimeDataBinding.cs
- DrawingImage.cs
- RuntimeWrappedException.cs
- GridViewCommandEventArgs.cs
- ToolStripSplitStackLayout.cs
- SafeSystemMetrics.cs
- XmlSchemaAttributeGroupRef.cs
- AttributeTable.cs
- WindowsGraphicsCacheManager.cs
- RegisteredArrayDeclaration.cs
- CodeRemoveEventStatement.cs
- HostedImpersonationContext.cs
- Type.cs
- RenderingBiasValidation.cs