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
- RowBinding.cs
- ApplicationId.cs
- PrePrepareMethodAttribute.cs
- AutoGeneratedField.cs
- ListViewItemSelectionChangedEvent.cs
- ToolboxComponentsCreatingEventArgs.cs
- DiagnosticEventProvider.cs
- xmlfixedPageInfo.cs
- BitmapEffectDrawing.cs
- DataGridViewLinkColumn.cs
- HttpClientChannel.cs
- RegistrationServices.cs
- XmlNodeComparer.cs
- FileReader.cs
- XmlCharCheckingReader.cs
- XmlSerializerOperationBehavior.cs
- SimplePropertyEntry.cs
- ValueProviderWrapper.cs
- DataBoundControlAdapter.cs
- XmlSchemaSimpleTypeUnion.cs
- CrossContextChannel.cs
- TemplateXamlTreeBuilder.cs
- OdbcConnectionFactory.cs
- SectionVisual.cs
- Exception.cs
- FacetDescription.cs
- PersonalizationStateQuery.cs
- XmlDocumentFragment.cs
- OdbcConnectionHandle.cs
- oledbmetadatacolumnnames.cs
- OpenFileDialog.cs
- DataRelationPropertyDescriptor.cs
- ExpressionEditorAttribute.cs
- Application.cs
- URIFormatException.cs
- Convert.cs
- BufferedGraphicsManager.cs
- ButtonFieldBase.cs
- Rectangle.cs
- SystemIcmpV6Statistics.cs
- SpellerInterop.cs
- ColorConvertedBitmapExtension.cs
- AssociatedControlConverter.cs
- SettingsAttributeDictionary.cs
- BitmapFrame.cs
- XmlWhitespace.cs
- GridViewRowCollection.cs
- XmlCharType.cs
- EpmSyndicationContentDeSerializer.cs
- CodeAccessPermission.cs
- ComplexTypeEmitter.cs
- DocumentCollection.cs
- MimeBasePart.cs
- UriTemplateClientFormatter.cs
- XmlEnumAttribute.cs
- DocumentPageTextView.cs
- ToolStripComboBox.cs
- ServiceDescription.cs
- HttpRawResponse.cs
- WindowInteropHelper.cs
- CodeThrowExceptionStatement.cs
- DocumentReferenceCollection.cs
- OleDbTransaction.cs
- RowUpdatingEventArgs.cs
- DebugInfoExpression.cs
- FontEmbeddingManager.cs
- AssemblyHash.cs
- SignatureDescription.cs
- ImageFormatConverter.cs
- HandlerFactoryWrapper.cs
- OverrideMode.cs
- CompiledAction.cs
- DataGridViewRowCancelEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- DecodeHelper.cs
- WebServiceMethodData.cs
- WebPartTransformerCollection.cs
- HyperLink.cs
- SafeArchiveContext.cs
- BitmapEffectDrawing.cs
- EnterpriseServicesHelper.cs
- SafeNativeMethodsCLR.cs
- ISAPIWorkerRequest.cs
- UnsafeNativeMethodsPenimc.cs
- MSAANativeProvider.cs
- Compiler.cs
- HandlerFactoryCache.cs
- PersonalizationState.cs
- HandleRef.cs
- TableLayoutColumnStyleCollection.cs
- SymbolTable.cs
- WebWorkflowRole.cs
- CultureInfo.cs
- recordstate.cs
- PlaceHolder.cs
- SerTrace.cs
- ScriptManager.cs
- SqlLiftWhereClauses.cs
- MouseGestureValueSerializer.cs
- WebGetAttribute.cs