Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- LocalBuilder.cs
- elementinformation.cs
- QueryCursorEventArgs.cs
- ProcessModule.cs
- UInt16Storage.cs
- NotificationContext.cs
- LinqDataSourceValidationException.cs
- TreeNodeStyleCollection.cs
- AffineTransform3D.cs
- FileCodeGroup.cs
- AtomServiceDocumentSerializer.cs
- ObjectDataSourceView.cs
- ObjectDataSourceSelectingEventArgs.cs
- ObjectItemAssemblyLoader.cs
- WebPartEditVerb.cs
- RowsCopiedEventArgs.cs
- DataRelation.cs
- ToolStripContentPanelDesigner.cs
- SessionPageStatePersister.cs
- RegistrySecurity.cs
- DirectoryObjectSecurity.cs
- MenuScrollingVisibilityConverter.cs
- Fonts.cs
- InternalConfigRoot.cs
- CreateUserErrorEventArgs.cs
- GuidTagList.cs
- TreeNodeClickEventArgs.cs
- COSERVERINFO.cs
- Span.cs
- PrintPreviewControl.cs
- BooleanKeyFrameCollection.cs
- _DigestClient.cs
- Point3DIndependentAnimationStorage.cs
- CatalogZoneBase.cs
- DataGridViewTopRowAccessibleObject.cs
- ItemCheckedEvent.cs
- ColorConvertedBitmap.cs
- GeneratedCodeAttribute.cs
- ServerValidateEventArgs.cs
- CapabilitiesSection.cs
- XmlStringTable.cs
- OverflowException.cs
- GridViewCancelEditEventArgs.cs
- peernodeimplementation.cs
- SamlNameIdentifierClaimResource.cs
- OAVariantLib.cs
- SemanticResolver.cs
- Keywords.cs
- XPathNodePointer.cs
- X509Utils.cs
- ProxyAttribute.cs
- GatewayDefinition.cs
- PasswordTextContainer.cs
- AuthenticationManager.cs
- __Filters.cs
- FlagsAttribute.cs
- TraceEventCache.cs
- ToolboxItemAttribute.cs
- DesignerResources.cs
- MonitoringDescriptionAttribute.cs
- HatchBrush.cs
- EntityClassGenerator.cs
- CellTreeNodeVisitors.cs
- ProcessModelSection.cs
- DataTableNewRowEvent.cs
- _LazyAsyncResult.cs
- DirectoryInfo.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- PersistenceTypeAttribute.cs
- ToolboxBitmapAttribute.cs
- TextEditorParagraphs.cs
- InvalidOleVariantTypeException.cs
- FilterElement.cs
- QueryParameter.cs
- MarkupExtensionSerializer.cs
- StringUtil.cs
- QuestionEventArgs.cs
- CmsInterop.cs
- Point3D.cs
- HtmlAnchor.cs
- FrameworkElement.cs
- printdlgexmarshaler.cs
- FileDialog_Vista_Interop.cs
- OledbConnectionStringbuilder.cs
- SqlCachedBuffer.cs
- ObjectViewQueryResultData.cs
- RectangleHotSpot.cs
- HttpRuntimeSection.cs
- CellQuery.cs
- EnumerableRowCollectionExtensions.cs
- CheckBox.cs
- RestClientProxyHandler.cs
- Renderer.cs
- DataGridTextBoxColumn.cs
- TextTreeExtractElementUndoUnit.cs
- ImpersonationContext.cs
- COM2FontConverter.cs
- BaseTreeIterator.cs
- GenerateHelper.cs
- HtmlImage.cs