Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / TextBlockAutomationPeer.cs / 1 / TextBlockAutomationPeer.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: TextBlockAutomationPeer.cs // // Description: AutomationPeer associated with TextBlock. // //--------------------------------------------------------------------------- using System.Collections.Generic; // Listusing System.Windows.Controls; // TextBlock using System.Windows.Documents; // ITextContainer using MS.Internal.Documents; // TextContainerHelper namespace System.Windows.Automation.Peers { /// /// AutomationPeer associated with TextBlock. /// public class TextBlockAutomationPeer : FrameworkElementAutomationPeer { ////// Constructor. /// /// Owner of the AutomationPeer. public TextBlockAutomationPeer(TextBlock owner) : base(owner) { } ////// protected override List/// GetChildrenCore() { List peers = null; TextBlock owner = (TextBlock)Owner; // TextBlock has children only if it has complex content. if (owner.HasComplexContent) { peers = TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); } return peers; } /// /// protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } ////// /// ////// protected override string GetClassNameCore() { return "TextBlock"; } /// /// override protected bool IsControlElementCore() { // Return true if TextBlock is not part of the style return ((TextBlock)Owner).TemplatedParent == null; } } } // 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
- BitmapEffectInput.cs
- DataGridItemEventArgs.cs
- Helper.cs
- SiteMapHierarchicalDataSourceView.cs
- FixUp.cs
- SamlAssertion.cs
- BaseAddressPrefixFilterElement.cs
- CalendarData.cs
- MulticastNotSupportedException.cs
- ViewStateModeByIdAttribute.cs
- AnnotationService.cs
- CharacterString.cs
- Registry.cs
- ViewManager.cs
- BooleanProjectedSlot.cs
- ParserContext.cs
- PublisherMembershipCondition.cs
- NoClickablePointException.cs
- ValueExpressions.cs
- XmlQueryCardinality.cs
- GeometryGroup.cs
- PropertyEmitter.cs
- GridItem.cs
- CompositionDesigner.cs
- ReaderWriterLockWrapper.cs
- streamingZipPartStream.cs
- XpsSerializerFactory.cs
- GestureRecognitionResult.cs
- CompressedStack.cs
- XmlChildNodes.cs
- DriveNotFoundException.cs
- SpoolingTask.cs
- ValidationRule.cs
- JapaneseLunisolarCalendar.cs
- EntityDataSourceView.cs
- FormViewDeleteEventArgs.cs
- X509CertificateInitiatorServiceCredential.cs
- AxImporter.cs
- XmlUrlEditor.cs
- NativeMethodsOther.cs
- WebPartZoneCollection.cs
- TextEffectCollection.cs
- StreamWithDictionary.cs
- TableLayoutPanelCellPosition.cs
- CanonicalFontFamilyReference.cs
- StringAnimationUsingKeyFrames.cs
- DesignerTextViewAdapter.cs
- FixedSOMGroup.cs
- FlowLayoutSettings.cs
- PageAsyncTaskManager.cs
- RoleManagerModule.cs
- Light.cs
- XmlSubtreeReader.cs
- MonitoringDescriptionAttribute.cs
- HierarchicalDataSourceControl.cs
- Int64AnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- TypeListConverter.cs
- DataGridViewCellValueEventArgs.cs
- Pen.cs
- FlatButtonAppearance.cs
- CompositeCollection.cs
- LinearKeyFrames.cs
- HtmlTableRow.cs
- DataGridViewHitTestInfo.cs
- Exceptions.cs
- HttpRequest.cs
- HttpApplicationStateWrapper.cs
- Psha1DerivedKeyGeneratorHelper.cs
- MultiTouchSystemGestureLogic.cs
- Point.cs
- HotSpot.cs
- EDesignUtil.cs
- CodeDirectiveCollection.cs
- SystemBrushes.cs
- CompressedStack.cs
- DataGridViewImageCell.cs
- Wizard.cs
- SiblingIterators.cs
- SafeBitVector32.cs
- WebPartConnectionsCancelEventArgs.cs
- AttributeCollection.cs
- DesignerCategoryAttribute.cs
- ActivityDesignerAccessibleObject.cs
- BindingEntityInfo.cs
- MessageOperationFormatter.cs
- SimpleBitVector32.cs
- NullableLongAverageAggregationOperator.cs
- DataGridViewRowStateChangedEventArgs.cs
- GenericParameterDataContract.cs
- EventRouteFactory.cs
- DataBoundControl.cs
- IndexedGlyphRun.cs
- RSAPKCS1SignatureFormatter.cs
- ActivityWithResult.cs
- StylusPointPropertyUnit.cs
- SelectionChangedEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- SchemaMapping.cs
- FlowDocumentScrollViewer.cs