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
- Propagator.JoinPropagator.cs
- MsmqHostedTransportConfiguration.cs
- FontUnit.cs
- WindowsRegion.cs
- PrivilegeNotHeldException.cs
- Terminate.cs
- FontStyleConverter.cs
- CachedFontFamily.cs
- NotifyIcon.cs
- EllipticalNodeOperations.cs
- ETagAttribute.cs
- Size3D.cs
- InProcStateClientManager.cs
- CallbackException.cs
- ProcessHostFactoryHelper.cs
- Int16KeyFrameCollection.cs
- Table.cs
- ComPlusDiagnosticTraceSchemas.cs
- SelectedPathEditor.cs
- GridViewCancelEditEventArgs.cs
- OleDbDataReader.cs
- AnnotationHighlightLayer.cs
- ElementAction.cs
- MenuItem.cs
- AutoResetEvent.cs
- CheckBoxList.cs
- QilFactory.cs
- DateRangeEvent.cs
- FontNameEditor.cs
- GcSettings.cs
- ServerValidateEventArgs.cs
- TimersDescriptionAttribute.cs
- ExpressionConverter.cs
- NodeFunctions.cs
- MD5.cs
- TransactionProxy.cs
- StrongTypingException.cs
- WindowsContainer.cs
- MatcherBuilder.cs
- DynamicActionMessageFilter.cs
- ObjectMaterializedEventArgs.cs
- MonitoringDescriptionAttribute.cs
- Header.cs
- IdentitySection.cs
- DefaultPrintController.cs
- WindowsListView.cs
- AxisAngleRotation3D.cs
- ParserStreamGeometryContext.cs
- Trustee.cs
- CssStyleCollection.cs
- LinkLabelLinkClickedEvent.cs
- Run.cs
- KeyValueSerializer.cs
- TextSegment.cs
- DesignerUtility.cs
- DiagnosticsConfigurationHandler.cs
- ToolStripDropDownClosingEventArgs.cs
- safemediahandle.cs
- HybridDictionary.cs
- SizeValueSerializer.cs
- HighContrastHelper.cs
- ReachSerializationCacheItems.cs
- PanelStyle.cs
- Speller.cs
- COAUTHINFO.cs
- Code.cs
- SHA1Cng.cs
- FontFamilyValueSerializer.cs
- WebPartManagerInternals.cs
- XmlDocumentType.cs
- InvalidComObjectException.cs
- IconHelper.cs
- QueryOptionExpression.cs
- MediaScriptCommandRoutedEventArgs.cs
- TargetInvocationException.cs
- DocumentApplicationJournalEntry.cs
- Border.cs
- DataSourceProvider.cs
- CharStorage.cs
- GreaterThan.cs
- FaultCallbackWrapper.cs
- MonthCalendarDesigner.cs
- AstTree.cs
- CookielessHelper.cs
- TagElement.cs
- DataMemberFieldEditor.cs
- EncryptedKey.cs
- RelationshipEndCollection.cs
- HtmlInputControl.cs
- RawStylusInputReport.cs
- DbProviderConfigurationHandler.cs
- Int32CollectionValueSerializer.cs
- EntityStoreSchemaFilterEntry.cs
- SqlCommandBuilder.cs
- CompiledXpathExpr.cs
- PrintDialog.cs
- BamlReader.cs
- PropertyEntry.cs
- Compiler.cs
- TextStore.cs