Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / AdornerHitTestResult.cs / 1 / AdornerHitTestResult.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // AdornerHitTestResult class, used to return the result from // a call to AdornerLayer.AdornerHitTest(). // See spec at: http://avalon/uis/Specs/AdornerLayer%20Spec.htm // // History: // 2/16/2004 psarrett: Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using MS.Internal; using System.Windows.Documents; namespace System.Windows.Media { ////// Data provided as a result of calling AdornerLayer.AdornerHitTest(). /// In addition to the visual and point information provided by the base /// class PointHitTestResult, also returns the Adorner that was hit (since /// there may be multiple Visuals in a single Adorner). /// public class AdornerHitTestResult : PointHitTestResult { private readonly Adorner _adorner; ////// Constructor /// /// Visual that was hit /// Point that was hit, in visual's coordinate space /// Adorner that was hit internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt) { _adorner = adorner; } ////// Returns the visual that was hit. /// public Adorner Adorner { get { return _adorner; } } } } // 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. // // // // Description: // AdornerHitTestResult class, used to return the result from // a call to AdornerLayer.AdornerHitTest(). // See spec at: http://avalon/uis/Specs/AdornerLayer%20Spec.htm // // History: // 2/16/2004 psarrett: Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using MS.Internal; using System.Windows.Documents; namespace System.Windows.Media { ////// Data provided as a result of calling AdornerLayer.AdornerHitTest(). /// In addition to the visual and point information provided by the base /// class PointHitTestResult, also returns the Adorner that was hit (since /// there may be multiple Visuals in a single Adorner). /// public class AdornerHitTestResult : PointHitTestResult { private readonly Adorner _adorner; ////// Constructor /// /// Visual that was hit /// Point that was hit, in visual's coordinate space /// Adorner that was hit internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt) { _adorner = adorner; } ////// Returns the visual that was hit. /// public Adorner Adorner { get { return _adorner; } } } } // 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
- MetadataPropertyvalue.cs
- MetadataCollection.cs
- Trustee.cs
- ParameterCollectionEditorForm.cs
- ScrollViewer.cs
- PiiTraceSource.cs
- FrameSecurityDescriptor.cs
- Region.cs
- MimeTypeMapper.cs
- EventLogEntryCollection.cs
- PermissionSetTriple.cs
- CodeDelegateCreateExpression.cs
- GridViewRowCollection.cs
- DialogWindow.cs
- InstanceValue.cs
- KeyTimeConverter.cs
- DataGridViewAccessibleObject.cs
- OutputWindow.cs
- UrlPropertyAttribute.cs
- DetailsViewDeletedEventArgs.cs
- StoreUtilities.cs
- BitmapFrame.cs
- XmlComplianceUtil.cs
- BulletChrome.cs
- ReferentialConstraint.cs
- DBSqlParserColumn.cs
- WindowsFont.cs
- ErrorStyle.cs
- VisualTreeUtils.cs
- AssociationSet.cs
- BookmarkManager.cs
- RegistryPermission.cs
- AuthorizationRule.cs
- SudsWriter.cs
- ComboBoxRenderer.cs
- AspNetSynchronizationContext.cs
- ClientFormsAuthenticationCredentials.cs
- Light.cs
- CalendarItem.cs
- ScriptManager.cs
- PropertyEmitterBase.cs
- SqlVisitor.cs
- NaturalLanguageHyphenator.cs
- WindowsButton.cs
- XmlDownloadManager.cs
- ContentOperations.cs
- TemplateBindingExpression.cs
- OptimalBreakSession.cs
- VariableAction.cs
- Token.cs
- RenderContext.cs
- GenericIdentity.cs
- TokenBasedSetEnumerator.cs
- DragDrop.cs
- Typeface.cs
- KeyInterop.cs
- MouseGestureValueSerializer.cs
- TraceHandlerErrorFormatter.cs
- RowType.cs
- XmlSchemaInferenceException.cs
- NameSpaceExtractor.cs
- RemoteArgument.cs
- Int64AnimationBase.cs
- OracleParameterCollection.cs
- BmpBitmapEncoder.cs
- JsonEncodingStreamWrapper.cs
- CachedPathData.cs
- BrowsableAttribute.cs
- DataGridTableStyleMappingNameEditor.cs
- Hashtable.cs
- FormViewDeleteEventArgs.cs
- SegmentInfo.cs
- TogglePattern.cs
- ThreadLocal.cs
- Crypto.cs
- UpWmlPageAdapter.cs
- OlePropertyStructs.cs
- RelationshipNavigation.cs
- StandardToolWindows.cs
- BamlReader.cs
- DropShadowBitmapEffect.cs
- SpinLock.cs
- XmlSchemaObjectCollection.cs
- Page.cs
- FlowLayoutPanel.cs
- ImageDrawing.cs
- LockedBorderGlyph.cs
- ListParaClient.cs
- XmlUtil.cs
- GridViewCancelEditEventArgs.cs
- IisTraceListener.cs
- SmiSettersStream.cs
- Parameter.cs
- TdsParserSessionPool.cs
- ExpressionPrefixAttribute.cs
- ColumnMapVisitor.cs
- TablePattern.cs
- XmlSchemaProviderAttribute.cs
- ListenerHandler.cs
- XmlSerializerNamespaces.cs