Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MaterializeFromAtom.cs
- ACL.cs
- PrimitiveXmlSerializers.cs
- SiteMapHierarchicalDataSourceView.cs
- ExpressionBuilderCollection.cs
- ThemeDirectoryCompiler.cs
- DecimalConstantAttribute.cs
- WebControlAdapter.cs
- Reference.cs
- StringCollection.cs
- _NetworkingPerfCounters.cs
- WebPartDisplayMode.cs
- ValueUtilsSmi.cs
- DynamicPropertyReader.cs
- WebPartCatalogAddVerb.cs
- DesignOnlyAttribute.cs
- CheckBoxBaseAdapter.cs
- SpecularMaterial.cs
- Adorner.cs
- SoapMessage.cs
- ListViewGroupItemCollection.cs
- _SpnDictionary.cs
- CannotUnloadAppDomainException.cs
- TextProperties.cs
- InkCanvasInnerCanvas.cs
- InputQueueChannelAcceptor.cs
- RC2CryptoServiceProvider.cs
- SerializationObjectManager.cs
- GregorianCalendarHelper.cs
- FrugalMap.cs
- RawStylusInput.cs
- EventProvider.cs
- ColorTranslator.cs
- TCEAdapterGenerator.cs
- TableRowCollection.cs
- SingleAnimationUsingKeyFrames.cs
- TreeNodeConverter.cs
- DoubleLinkList.cs
- AttachedAnnotationChangedEventArgs.cs
- NumberFormatInfo.cs
- BaseWebProxyFinder.cs
- DataTemplateKey.cs
- TypographyProperties.cs
- ExtensionWindowHeader.cs
- TextServicesManager.cs
- ITreeGenerator.cs
- PrintEvent.cs
- QueryContinueDragEvent.cs
- Util.cs
- DelimitedListTraceListener.cs
- DispatcherOperation.cs
- XmlElementCollection.cs
- BufferedStream.cs
- Brush.cs
- ParameterToken.cs
- TypeSemantics.cs
- PreservationFileReader.cs
- ExceptionUtil.cs
- DataGridViewColumnTypeEditor.cs
- XmlSchemaSet.cs
- MsmqHostedTransportConfiguration.cs
- XsdBuilder.cs
- FunctionCommandText.cs
- AbstractSvcMapFileLoader.cs
- NetworkInformationPermission.cs
- TransformPattern.cs
- TextElementEnumerator.cs
- SqlDataSourceConfigureSelectPanel.cs
- BufferedGenericXmlSecurityToken.cs
- GridViewItemAutomationPeer.cs
- HandlerBase.cs
- XmlStringTable.cs
- OutOfProcStateClientManager.cs
- ProfileGroupSettings.cs
- DataServiceStreamProviderWrapper.cs
- DataSourceGeneratorException.cs
- WmlCalendarAdapter.cs
- DataReceivedEventArgs.cs
- ValidationErrorCollection.cs
- ServiceModelConfigurationSection.cs
- XmlSchemaComplexContentRestriction.cs
- UnionCqlBlock.cs
- DbUpdateCommandTree.cs
- SplashScreenNativeMethods.cs
- AtlasWeb.Designer.cs
- ProcessInfo.cs
- ViewPort3D.cs
- pingexception.cs
- SyndicationItemFormatter.cs
- serverconfig.cs
- ImageSourceValueSerializer.cs
- EndpointAddressMessageFilter.cs
- ParameterCollection.cs
- MouseEvent.cs
- ClientRolePrincipal.cs
- OnOperation.cs
- DelegateSerializationHolder.cs
- DataGridViewCellConverter.cs
- ControlCachePolicy.cs
- ProcessHostServerConfig.cs