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
- ToolStripRendererSwitcher.cs
- FocusChangedEventArgs.cs
- SurrogateEncoder.cs
- RowsCopiedEventArgs.cs
- CreateUserWizardStep.cs
- MenuBase.cs
- TemplateBamlTreeBuilder.cs
- PointValueSerializer.cs
- MediaPlayer.cs
- XmlKeywords.cs
- GetImportedCardRequest.cs
- WindowsScrollBarBits.cs
- GlobalProxySelection.cs
- ComponentResourceManager.cs
- ElementProxy.cs
- MultipartContentParser.cs
- TextFindEngine.cs
- XmlLinkedNode.cs
- VideoDrawing.cs
- XsltQilFactory.cs
- SqlTrackingService.cs
- ConstraintConverter.cs
- BevelBitmapEffect.cs
- DragDrop.cs
- DialogResultConverter.cs
- ConfigurationCollectionAttribute.cs
- BindMarkupExtensionSerializer.cs
- IUnknownConstantAttribute.cs
- SoapAttributeOverrides.cs
- HashCryptoHandle.cs
- WorkflowRuntimeService.cs
- DataListCommandEventArgs.cs
- Thread.cs
- DataGridComboBoxColumn.cs
- RuleProcessor.cs
- InstanceOwnerQueryResult.cs
- SynchronizationContext.cs
- parserscommon.cs
- ThreadExceptionEvent.cs
- ExeConfigurationFileMap.cs
- SqlBuffer.cs
- Guid.cs
- ServiceAuthorizationElement.cs
- coordinatorscratchpad.cs
- HttpInputStream.cs
- FileDialogCustomPlace.cs
- InvokeMemberBinder.cs
- MetadataItem.cs
- OracleParameterBinding.cs
- AttachedAnnotation.cs
- BuilderPropertyEntry.cs
- ReferenceSchema.cs
- TypeElement.cs
- NotFiniteNumberException.cs
- WpfXamlMember.cs
- SamlAuthorizationDecisionStatement.cs
- ExplicitDiscriminatorMap.cs
- TableItemProviderWrapper.cs
- DesignerHelpers.cs
- DynamicScriptObject.cs
- DbConnectionPool.cs
- EmptyTextWriter.cs
- EncryptedPackageFilter.cs
- Line.cs
- SchemaInfo.cs
- PreProcessInputEventArgs.cs
- Queue.cs
- InternalBufferOverflowException.cs
- VisualStyleElement.cs
- MessageDecoder.cs
- TextEmbeddedObject.cs
- PeerCollaborationPermission.cs
- QilTernary.cs
- MemoryPressure.cs
- NullExtension.cs
- TableColumnCollectionInternal.cs
- OverflowException.cs
- DummyDataSource.cs
- TemplateComponentConnector.cs
- pingexception.cs
- Part.cs
- LinkUtilities.cs
- NullExtension.cs
- PortCache.cs
- Fault.cs
- UnsafeNativeMethods.cs
- HtmlTable.cs
- ExpandedWrapper.cs
- TraceContextRecord.cs
- ExpressionEditorSheet.cs
- CanExecuteRoutedEventArgs.cs
- DataRowView.cs
- SharedDp.cs
- WebServiceHostFactory.cs
- GridViewRowEventArgs.cs
- SharedPerformanceCounter.cs
- WebServiceTypeData.cs
- IncrementalCompileAnalyzer.cs
- MarkupObject.cs
- RemoteWebConfigurationHost.cs