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
- FlowLayoutPanel.cs
- StaticTextPointer.cs
- HintTextConverter.cs
- VectorAnimation.cs
- unsafenativemethodstextservices.cs
- GenericEnumerator.cs
- TextEditorTables.cs
- SizeConverter.cs
- BoundPropertyEntry.cs
- ListItemCollection.cs
- GradientStop.cs
- DataTableMapping.cs
- TextEffect.cs
- SafeTokenHandle.cs
- LazyTextWriterCreator.cs
- PropertyTabAttribute.cs
- ProcessManager.cs
- FileBasedResourceGroveler.cs
- JapaneseLunisolarCalendar.cs
- Light.cs
- DefaultSection.cs
- HostingEnvironmentSection.cs
- ControlCachePolicy.cs
- _NegoState.cs
- TimerEventSubscription.cs
- InputLanguageManager.cs
- ScrollProviderWrapper.cs
- Directory.cs
- VisualStyleTypesAndProperties.cs
- CssStyleCollection.cs
- DataListItemCollection.cs
- ClientApiGenerator.cs
- FormClosedEvent.cs
- ControlParser.cs
- SecurityToken.cs
- TextServicesManager.cs
- counter.cs
- StylusEditingBehavior.cs
- TransformCollection.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- WebPartConnectionsCancelEventArgs.cs
- PropertyValidationContext.cs
- SymbolType.cs
- CodeTypeMember.cs
- AccessedThroughPropertyAttribute.cs
- Model3DGroup.cs
- CustomWebEventKey.cs
- XPathDocument.cs
- versioninfo.cs
- CalendarDay.cs
- DataGridViewComboBoxEditingControl.cs
- AsyncInvokeOperation.cs
- EventProperty.cs
- UnsafePeerToPeerMethods.cs
- HitTestResult.cs
- QueryConverter.cs
- ZipPackagePart.cs
- CodeCommentStatementCollection.cs
- TrackingStringDictionary.cs
- TransactionProtocol.cs
- DrawingAttributesDefaultValueFactory.cs
- HtmlInputImage.cs
- PrintDialogException.cs
- Tracer.cs
- AtomPub10CategoriesDocumentFormatter.cs
- QuadraticBezierSegment.cs
- StrongNameHelpers.cs
- ActivationArguments.cs
- PartialClassGenerationTaskInternal.cs
- SimpleRecyclingCache.cs
- RawKeyboardInputReport.cs
- ElapsedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- Activator.cs
- SamlSecurityToken.cs
- Geometry.cs
- UrlEncodedParameterWriter.cs
- MSAAEventDispatcher.cs
- GridItem.cs
- WebPartConnectionsConfigureVerb.cs
- DataSourceHelper.cs
- NameValueConfigurationCollection.cs
- EntityStoreSchemaFilterEntry.cs
- PartBasedPackageProperties.cs
- GcSettings.cs
- ExpressionsCollectionConverter.cs
- WindowsStartMenu.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlTextAttribute.cs
- RegexGroup.cs
- TransformBlockRequest.cs
- PopOutPanel.cs
- StrongName.cs
- FunctionCommandText.cs
- ScriptReferenceBase.cs
- RemoteX509AsymmetricSecurityKey.cs
- ToolStripProgressBar.cs
- DataGridColumnCollection.cs
- SafeProcessHandle.cs
- MaskedTextProvider.cs