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
- TailCallAnalyzer.cs
- Boolean.cs
- HttpRuntimeSection.cs
- ScriptDescriptor.cs
- XmlSchemaAny.cs
- CloudCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- ByteStreamMessage.cs
- WebPartsSection.cs
- TokenBasedSetEnumerator.cs
- DesignerTransactionCloseEvent.cs
- NotifyCollectionChangedEventArgs.cs
- CopyNamespacesAction.cs
- RequestReplyCorrelator.cs
- FloaterBaseParagraph.cs
- SHA384.cs
- NativeMethods.cs
- XPathNodeInfoAtom.cs
- XpsDigitalSignature.cs
- HandlerWithFactory.cs
- DbFunctionCommandTree.cs
- FtpWebRequest.cs
- TextWriter.cs
- SharedStream.cs
- CipherData.cs
- BindingCollection.cs
- SmtpNtlmAuthenticationModule.cs
- ProjectionRewriter.cs
- LocalizationComments.cs
- AutomationProperty.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- OdbcConnectionStringbuilder.cs
- ShimAsPublicXamlType.cs
- OleDbTransaction.cs
- WebBrowserProgressChangedEventHandler.cs
- Crypto.cs
- ResourceContainer.cs
- PathNode.cs
- QueryTaskGroupState.cs
- TagMapCollection.cs
- PenLineJoinValidation.cs
- GeneralTransform3D.cs
- RoutedEventValueSerializer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ListBase.cs
- ElementHostPropertyMap.cs
- FrameworkElement.cs
- EventMappingSettingsCollection.cs
- WebPartConnectionsConnectVerb.cs
- TablePattern.cs
- DataBindingValueUIHandler.cs
- CheckBoxBaseAdapter.cs
- OdbcErrorCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- SettingsSection.cs
- AssemblyCollection.cs
- ParagraphResult.cs
- OpenFileDialog.cs
- XmlILCommand.cs
- HttpStaticObjectsCollectionBase.cs
- HtmlHistory.cs
- XmlToDatasetMap.cs
- Trustee.cs
- OutputCacheProfileCollection.cs
- EnumValidator.cs
- WindowsFormsHost.cs
- TripleDESCryptoServiceProvider.cs
- Vector3dCollection.cs
- DelimitedListTraceListener.cs
- RemotingConfigParser.cs
- TemplatedMailWebEventProvider.cs
- MetadataUtilsSmi.cs
- IPPacketInformation.cs
- Environment.cs
- FunctionQuery.cs
- StreamGeometryContext.cs
- ReferentialConstraint.cs
- DataIdProcessor.cs
- EncryptedPackage.cs
- WindowInteractionStateTracker.cs
- DockPattern.cs
- SchemaCollectionCompiler.cs
- oledbmetadatacollectionnames.cs
- BitmapEffect.cs
- TextElementCollection.cs
- Attributes.cs
- ToolStripComboBox.cs
- Attributes.cs
- ObjectDataSourceStatusEventArgs.cs
- DrawingAttributeSerializer.cs
- CodeTypeParameterCollection.cs
- WebEncodingValidatorAttribute.cs
- XmlDictionaryReaderQuotas.cs
- RegistrationServices.cs
- ObjectIDGenerator.cs
- _HeaderInfo.cs
- GenericIdentity.cs
- OneOfScalarConst.cs
- DbExpressionVisitor_TResultType.cs
- ManipulationInertiaStartingEventArgs.cs