Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / AdornerHitTestResult.cs / 1305600 / 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
- UnsafePeerToPeerMethods.cs
- WSSecurityTokenSerializer.cs
- IListConverters.cs
- Parameter.cs
- ProfessionalColorTable.cs
- TTSEngineTypes.cs
- DataGridViewBindingCompleteEventArgs.cs
- ListControl.cs
- ValidatorCompatibilityHelper.cs
- HtmlImage.cs
- EventHandlersDesigner.cs
- mda.cs
- ScrollViewer.cs
- CharKeyFrameCollection.cs
- ValidatorCompatibilityHelper.cs
- BlurEffect.cs
- XXXInfos.cs
- StateManager.cs
- AutomationTextAttribute.cs
- DataGridViewImageCell.cs
- DataGridViewDataErrorEventArgs.cs
- EntityDataReader.cs
- LoginDesigner.cs
- XmlDocumentFieldSchema.cs
- HGlobalSafeHandle.cs
- MLangCodePageEncoding.cs
- SrgsElementFactory.cs
- SoapBinding.cs
- FormViewPageEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- HtmlDocument.cs
- SimpleFileLog.cs
- SerializableTypeCodeDomSerializer.cs
- PersonalizationStateInfoCollection.cs
- PerformanceCounterCategory.cs
- EmptyQuery.cs
- TextTreeRootNode.cs
- EncodingInfo.cs
- ModifierKeysValueSerializer.cs
- DelegateBodyWriter.cs
- PropertyConverter.cs
- ListItemCollection.cs
- AxParameterData.cs
- MimeTypeMapper.cs
- DesignerOptionService.cs
- EventMappingSettings.cs
- ConfigurationSectionCollection.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ZipIOLocalFileBlock.cs
- StaticSiteMapProvider.cs
- DiagnosticsConfigurationHandler.cs
- PreservationFileReader.cs
- HasCopySemanticsAttribute.cs
- DependencySource.cs
- NavigatorInput.cs
- ExclusiveNamedPipeTransportManager.cs
- ProfilePropertySettings.cs
- RuleValidation.cs
- ElementMarkupObject.cs
- PngBitmapEncoder.cs
- WebContentFormatHelper.cs
- unsafenativemethodsother.cs
- SerializationInfoEnumerator.cs
- HwndKeyboardInputProvider.cs
- HttpCapabilitiesSectionHandler.cs
- LineProperties.cs
- Descriptor.cs
- StateRuntime.cs
- GeometryGroup.cs
- WorkflowMarkupElementEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- PeerCollaboration.cs
- WebBrowserContainer.cs
- DiagnosticTrace.cs
- DocumentPaginator.cs
- ExpressionVisitor.cs
- WindowHideOrCloseTracker.cs
- ListViewItem.cs
- SplashScreenNativeMethods.cs
- MethodCallConverter.cs
- SystemIPv6InterfaceProperties.cs
- CreateInstanceBinder.cs
- MenuItemBinding.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ZipIOLocalFileBlock.cs
- DateTimeConverter.cs
- MetadataItemEmitter.cs
- DesignerSerializationVisibilityAttribute.cs
- TypeSystemProvider.cs
- TextDataBindingHandler.cs
- Calendar.cs
- HttpConfigurationSystem.cs
- InlineUIContainer.cs
- HttpHandlersSection.cs
- StringUtil.cs
- UInt32Converter.cs
- Stack.cs
- SqlOuterApplyReducer.cs
- DataSetSchema.cs
- SqlDelegatedTransaction.cs