Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ContentTextAutomationPeer.cs / 1305600 / 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
- PassportPrincipal.cs
- EntityDataSourceChangingEventArgs.cs
- DelegateHelpers.Generated.cs
- FixedPageStructure.cs
- TextBoxAutomationPeer.cs
- VSWCFServiceContractGenerator.cs
- XdrBuilder.cs
- ItemAutomationPeer.cs
- Guid.cs
- SQLDateTime.cs
- ConstantSlot.cs
- ConditionalWeakTable.cs
- BindingContext.cs
- DbProviderServices.cs
- TileModeValidation.cs
- KeyValueInternalCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ResourceAttributes.cs
- XmlSchemaSequence.cs
- GeneralTransform3D.cs
- ChangeDirector.cs
- CharConverter.cs
- BaseValidatorDesigner.cs
- CodeObjectCreateExpression.cs
- XmlSchemaRedefine.cs
- DefaultAssemblyResolver.cs
- formatter.cs
- ThicknessConverter.cs
- DataGridViewColumn.cs
- ParserExtension.cs
- Comparer.cs
- ExtentKey.cs
- IconHelper.cs
- CookieParameter.cs
- unsafeIndexingFilterStream.cs
- Point.cs
- IsolatedStorageFile.cs
- ShaperBuffers.cs
- DebugView.cs
- BaseCodeDomTreeGenerator.cs
- RegionData.cs
- InterleavedZipPartStream.cs
- EntitySetBaseCollection.cs
- FixUpCollection.cs
- SigningCredentials.cs
- CheckoutException.cs
- StringExpressionSet.cs
- SamlAttributeStatement.cs
- WorkflowEnvironment.cs
- VectorCollectionValueSerializer.cs
- DocumentOrderQuery.cs
- PrintDocument.cs
- SelectQueryOperator.cs
- SqlXml.cs
- TextEffect.cs
- StorageMappingItemCollection.cs
- WaveHeader.cs
- ApplicationBuildProvider.cs
- input.cs
- SourceLineInfo.cs
- List.cs
- Sql8ExpressionRewriter.cs
- ExceptionNotification.cs
- DelegatedStream.cs
- SafeCryptoHandles.cs
- SrgsElementFactoryCompiler.cs
- SafeTimerHandle.cs
- ToolStripContentPanel.cs
- OracleConnectionStringBuilder.cs
- StyleXamlParser.cs
- RestClientProxyHandler.cs
- TextElementAutomationPeer.cs
- OperationCanceledException.cs
- WarningException.cs
- HttpVersion.cs
- RepeaterItemCollection.cs
- NullableDecimalMinMaxAggregationOperator.cs
- FocusWithinProperty.cs
- UpnEndpointIdentity.cs
- SmiXetterAccessMap.cs
- EventArgs.cs
- ResXResourceReader.cs
- DataRecordInfo.cs
- StrokeDescriptor.cs
- XmlEnumAttribute.cs
- SQLInt64.cs
- RadioButtonStandardAdapter.cs
- BaseCollection.cs
- NameValuePermission.cs
- CodeSnippetCompileUnit.cs
- StringDictionaryWithComparer.cs
- MobileControlsSectionHandler.cs
- SpecularMaterial.cs
- EventLogPermissionAttribute.cs
- TriState.cs
- SqlNodeAnnotation.cs
- TextFormatterImp.cs
- PickDesigner.xaml.cs
- baseaxisquery.cs
- Stroke.cs