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
- RowCache.cs
- WindowsFormsHelpers.cs
- SQLBinary.cs
- SqlExpander.cs
- NativeMethods.cs
- QueryActivatableWorkflowsCommand.cs
- WindowsListBox.cs
- StructuredType.cs
- StyleModeStack.cs
- MouseActionValueSerializer.cs
- ScriptResourceAttribute.cs
- BamlTreeUpdater.cs
- AccessibleObject.cs
- XmlILStorageConverter.cs
- TrackingAnnotationCollection.cs
- BatchParser.cs
- EdmComplexTypeAttribute.cs
- TraceContext.cs
- RadioButtonRenderer.cs
- FileDialogCustomPlace.cs
- SslStreamSecurityUpgradeProvider.cs
- SafeRightsManagementHandle.cs
- ToolStripManager.cs
- WsrmTraceRecord.cs
- CodeExpressionRuleDeclaration.cs
- DefaultAsyncDataDispatcher.cs
- StylusDevice.cs
- RelationshipWrapper.cs
- RoamingStoreFileUtility.cs
- XmlSchemaNotation.cs
- SqlDataSourceRefreshSchemaForm.cs
- FilterableData.cs
- PeerNameRegistration.cs
- XmlDictionaryReader.cs
- AudioFileOut.cs
- MembershipValidatePasswordEventArgs.cs
- XmlCharacterData.cs
- Point3DAnimation.cs
- RemotingException.cs
- ConfigPathUtility.cs
- FamilyTypeface.cs
- Rules.cs
- XmlSchemaValidator.cs
- Schema.cs
- RegexStringValidator.cs
- CodeLabeledStatement.cs
- URIFormatException.cs
- _BufferOffsetSize.cs
- ReceiveContextCollection.cs
- DependencyPropertyAttribute.cs
- RealizationContext.cs
- Effect.cs
- ClientUtils.cs
- StringAnimationBase.cs
- HtmlTitle.cs
- RowToFieldTransformer.cs
- DesignerTransaction.cs
- GenericTypeParameterBuilder.cs
- VisualBrush.cs
- sitestring.cs
- TextRange.cs
- PathNode.cs
- ObjectDataSourceStatusEventArgs.cs
- SafeLocalMemHandle.cs
- WindowsTooltip.cs
- DeviceContexts.cs
- TextDecorationCollection.cs
- AlternationConverter.cs
- NativeMethods.cs
- FileIOPermission.cs
- Pipe.cs
- Floater.cs
- ErrorWrapper.cs
- UpdatePanelTrigger.cs
- XmlDomTextWriter.cs
- BoundPropertyEntry.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PcmConverter.cs
- ApplicationBuildProvider.cs
- ClassHandlersStore.cs
- EmptyStringExpandableObjectConverter.cs
- ColumnResult.cs
- CriticalExceptions.cs
- MethodBody.cs
- StaticTextPointer.cs
- CodeGotoStatement.cs
- EntityCommand.cs
- RawUIStateInputReport.cs
- AttachedPropertyMethodSelector.cs
- EmptyEnumerable.cs
- DesignerProperties.cs
- AlgoModule.cs
- DSASignatureDeformatter.cs
- ConsumerConnectionPoint.cs
- InternalCache.cs
- ClientTargetCollection.cs
- UnSafeCharBuffer.cs
- WebPartDesigner.cs
- MimeParameterWriter.cs
- Geometry.cs