Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SaveFileDialog.cs
- SchemaMapping.cs
- DataAdapter.cs
- NotSupportedException.cs
- Object.cs
- DataGridViewRowsRemovedEventArgs.cs
- FlowLayout.cs
- WebConvert.cs
- ConfigurationConverterBase.cs
- DefaultAssemblyResolver.cs
- SqlDataSourceQuery.cs
- CaseInsensitiveOrdinalStringComparer.cs
- InfocardExtendedInformationEntry.cs
- RequestQueue.cs
- URLAttribute.cs
- AnimationLayer.cs
- PersonalizationState.cs
- UnsafeNativeMethods.cs
- PrimitiveXmlSerializers.cs
- ToolTipAutomationPeer.cs
- ReferenceAssemblyAttribute.cs
- FastPropertyAccessor.cs
- RawAppCommandInputReport.cs
- FormViewModeEventArgs.cs
- AsmxEndpointPickerExtension.cs
- MultiTargetingUtil.cs
- TextServicesDisplayAttribute.cs
- AdjustableArrowCap.cs
- CompilerState.cs
- TextPointer.cs
- ConnectionAcceptor.cs
- ObjectStateFormatter.cs
- WebPartDescription.cs
- UserUseLicenseDictionaryLoader.cs
- ZipIOLocalFileBlock.cs
- Operators.cs
- ListDictionary.cs
- OptimalTextSource.cs
- BindingList.cs
- XmlIlVisitor.cs
- Types.cs
- UnicodeEncoding.cs
- EntryIndex.cs
- DataSourceCache.cs
- NegatedCellConstant.cs
- ClientOperationFormatterProvider.cs
- CodeIterationStatement.cs
- ResourcesBuildProvider.cs
- StringResourceManager.cs
- AnonymousIdentificationSection.cs
- ConnectionManagementElementCollection.cs
- XmlMapping.cs
- SystemPens.cs
- ItemAutomationPeer.cs
- ControlUtil.cs
- IssuanceLicense.cs
- CustomCategoryAttribute.cs
- TemplateFactory.cs
- LifetimeServices.cs
- RoutedEventHandlerInfo.cs
- MailAddressParser.cs
- UndoManager.cs
- PropertyInfo.cs
- CodeNamespaceCollection.cs
- ComAwareEventInfo.cs
- Button.cs
- BooleanToVisibilityConverter.cs
- DocumentViewerBaseAutomationPeer.cs
- VectorKeyFrameCollection.cs
- Image.cs
- XmlSchemaElement.cs
- CqlIdentifiers.cs
- LoadedOrUnloadedOperation.cs
- EditorPartChrome.cs
- UTF32Encoding.cs
- DetailsViewModeEventArgs.cs
- GridLength.cs
- LabelLiteral.cs
- DataGridPagerStyle.cs
- FtpWebResponse.cs
- BamlLocalizableResource.cs
- WebPartDisplayModeCancelEventArgs.cs
- StorageModelBuildProvider.cs
- ImportContext.cs
- NetworkCredential.cs
- ConstraintCollection.cs
- ScrollEventArgs.cs
- PopupControlService.cs
- UriTemplateQueryValue.cs
- MenuEventArgs.cs
- ReservationNotFoundException.cs
- DataSourceCache.cs
- FeatureSupport.cs
- DocumentOrderQuery.cs
- FaultContractAttribute.cs
- FileDataSourceCache.cs
- TcpConnectionPoolSettings.cs
- RC2CryptoServiceProvider.cs
- ToolboxItemCollection.cs
- WindowsGraphicsCacheManager.cs