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
- TypeSystem.cs
- HelpEvent.cs
- RuleSettingsCollection.cs
- FormsAuthenticationCredentials.cs
- SiteMapNode.cs
- HttpVersion.cs
- ParameterModifier.cs
- ContainerParagraph.cs
- FixedSOMContainer.cs
- CheckBoxPopupAdapter.cs
- QuaternionAnimationBase.cs
- Group.cs
- ValueExpressions.cs
- X509AsymmetricSecurityKey.cs
- Content.cs
- FrameworkElementFactory.cs
- ComplexTypeEmitter.cs
- ResourceManager.cs
- AbandonedMutexException.cs
- PropertyDescriptorCollection.cs
- NativeMethods.cs
- TdsParser.cs
- BitmapFrameEncode.cs
- ScriptRef.cs
- BrowserCapabilitiesFactory.cs
- EntityTypeEmitter.cs
- _NativeSSPI.cs
- TextViewSelectionProcessor.cs
- XPathBinder.cs
- _LocalDataStoreMgr.cs
- KnownBoxes.cs
- Scalars.cs
- Page.cs
- SqlAliaser.cs
- AttachmentService.cs
- WebServiceTypeData.cs
- SqlXmlStorage.cs
- XamlPathDataSerializer.cs
- CodeGenerationManager.cs
- QueueProcessor.cs
- AppSecurityManager.cs
- WebPartActionVerb.cs
- TableRow.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PageRouteHandler.cs
- ExceptionTrace.cs
- WeakEventTable.cs
- DataSetViewSchema.cs
- BaseInfoTable.cs
- EndpointAddress10.cs
- StylusPoint.cs
- SelectionEditor.cs
- RestClientProxyHandler.cs
- WinFormsSecurity.cs
- InputScope.cs
- FixedTextBuilder.cs
- PrincipalPermission.cs
- autovalidator.cs
- latinshape.cs
- CreateUserErrorEventArgs.cs
- GenericIdentity.cs
- NegatedConstant.cs
- XmlBinaryWriter.cs
- LoginUtil.cs
- SoapBinding.cs
- SubMenuStyleCollectionEditor.cs
- TemplateBaseAction.cs
- Base64Stream.cs
- ScalarConstant.cs
- MailBnfHelper.cs
- TabControlAutomationPeer.cs
- SqlClientPermission.cs
- XmlSerializableServices.cs
- PerfService.cs
- AttachmentCollection.cs
- OleDbWrapper.cs
- PeerNameRecord.cs
- BookmarkInfo.cs
- ManipulationCompletedEventArgs.cs
- XhtmlBasicCommandAdapter.cs
- RedirectionProxy.cs
- ColumnReorderedEventArgs.cs
- xsdvalidator.cs
- ToolStripContainer.cs
- CodeMethodInvokeExpression.cs
- COM2IPerPropertyBrowsingHandler.cs
- XmlSignificantWhitespace.cs
- EventProviderWriter.cs
- PassportIdentity.cs
- ReflectionTypeLoadException.cs
- LabelInfo.cs
- FileDialogPermission.cs
- OleDbStruct.cs
- Viewport3DVisual.cs
- BuilderInfo.cs
- PrintEvent.cs
- ProviderSettingsCollection.cs
- ModelService.cs
- ErrorTableItemStyle.cs
- DocumentsTrace.cs