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
- NameTable.cs
- HyperlinkAutomationPeer.cs
- ArgumentException.cs
- DataSourceHelper.cs
- GenericEnumerator.cs
- GlyphRun.cs
- WebBaseEventKeyComparer.cs
- _ChunkParse.cs
- DeviceFiltersSection.cs
- IgnoreSectionHandler.cs
- InvariantComparer.cs
- DayRenderEvent.cs
- WebPartConnection.cs
- PointF.cs
- Parser.cs
- TransactionOptions.cs
- ExpressionBuilderContext.cs
- XmlUtil.cs
- EventRouteFactory.cs
- SiteMapNode.cs
- XmlSchemaResource.cs
- namescope.cs
- GeneratedCodeAttribute.cs
- ToolboxSnapDragDropEventArgs.cs
- CodeRemoveEventStatement.cs
- XmlDictionaryReader.cs
- Brushes.cs
- ISO2022Encoding.cs
- AutomationPeer.cs
- CompiledXpathExpr.cs
- DataColumnMapping.cs
- ConnectionManagementElementCollection.cs
- FileLogRecordStream.cs
- DefaultPrintController.cs
- RadialGradientBrush.cs
- ImageResources.Designer.cs
- CompositeDataBoundControl.cs
- DeadCharTextComposition.cs
- InheritanceContextChangedEventManager.cs
- externdll.cs
- MediaTimeline.cs
- Validator.cs
- ValidatingReaderNodeData.cs
- ExpressionWriter.cs
- TemplateEditingFrame.cs
- PropertyToken.cs
- PageParser.cs
- ImportContext.cs
- MethodAccessException.cs
- XMLSchema.cs
- XmlSchemaValidationException.cs
- XamlClipboardData.cs
- DeploymentExceptionMapper.cs
- OnOperation.cs
- TypeLoadException.cs
- DrawingBrush.cs
- GridErrorDlg.cs
- FormsAuthenticationCredentials.cs
- HttpRequestWrapper.cs
- DetailsViewUpdatedEventArgs.cs
- ImplicitInputBrush.cs
- StringHandle.cs
- OleDbSchemaGuid.cs
- ComboBoxRenderer.cs
- BindingMemberInfo.cs
- AsyncSerializedWorker.cs
- ThreadAttributes.cs
- _NtlmClient.cs
- HttpWebResponse.cs
- log.cs
- SubpageParaClient.cs
- DesignerPainter.cs
- BehaviorEditorPart.cs
- UnsafeCollabNativeMethods.cs
- Stream.cs
- DictionaryGlobals.cs
- CallSite.cs
- PerformanceCountersElement.cs
- WrappedReader.cs
- DataServiceHost.cs
- IteratorDescriptor.cs
- SettingsPropertyCollection.cs
- WindowsAuthenticationModule.cs
- OutOfMemoryException.cs
- BehaviorDragDropEventArgs.cs
- MimeBasePart.cs
- Localizer.cs
- storepermissionattribute.cs
- basemetadatamappingvisitor.cs
- KerberosSecurityTokenAuthenticator.cs
- XmlSchemaDocumentation.cs
- DataGridViewSelectedRowCollection.cs
- SqlReferenceCollection.cs
- PropertyRecord.cs
- ListControlConvertEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- TypeElement.cs
- PowerEase.cs
- DictionaryEntry.cs
- WSMessageEncoding.cs