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
- PtsHost.cs
- Events.cs
- QueryableDataSourceView.cs
- DetailsViewModeEventArgs.cs
- RecognitionResult.cs
- EditingMode.cs
- BinaryConverter.cs
- ReflectionPermission.cs
- BasicHttpSecurityMode.cs
- PeerCustomResolverElement.cs
- FilterableAttribute.cs
- DelegatingMessage.cs
- XmlNamespaceMappingCollection.cs
- SqlMethodAttribute.cs
- StringOutput.cs
- TileBrush.cs
- RtfToXamlLexer.cs
- HttpCacheParams.cs
- StringComparer.cs
- CodeValidator.cs
- Drawing.cs
- ExecutionTracker.cs
- WindowsSlider.cs
- PropertyPathWorker.cs
- EditorPartCollection.cs
- LocalizableAttribute.cs
- TemplateApplicationHelper.cs
- ImageBrush.cs
- TypedTableHandler.cs
- WindowsFont.cs
- RangeValidator.cs
- HtmlPageAdapter.cs
- LocalizationComments.cs
- DLinqTableProvider.cs
- DetailsViewInsertEventArgs.cs
- InvalidOperationException.cs
- TypeBinaryExpression.cs
- XmlSchemaSet.cs
- MediaSystem.cs
- GuidConverter.cs
- SqlSupersetValidator.cs
- TableParaClient.cs
- CoTaskMemHandle.cs
- ArrayElementGridEntry.cs
- ObservableDictionary.cs
- AttributeTableBuilder.cs
- TraceUtility.cs
- WebPartConnectionsCancelEventArgs.cs
- ReferentialConstraint.cs
- Oid.cs
- TextClipboardData.cs
- ObjectItemNoOpAssemblyLoader.cs
- ExpandSegmentCollection.cs
- DirectionalLight.cs
- BaseCodeDomTreeGenerator.cs
- CompoundFileReference.cs
- DocumentApplicationJournalEntry.cs
- Helpers.cs
- TargetConverter.cs
- TextRangeBase.cs
- XPathBinder.cs
- FixedSOMLineRanges.cs
- QilDataSource.cs
- processwaithandle.cs
- OperatorExpressions.cs
- TraceEventCache.cs
- LocalizedNameDescriptionPair.cs
- ToolStripItemTextRenderEventArgs.cs
- _ConnectStream.cs
- TemplateBuilder.cs
- SendDesigner.xaml.cs
- WeakHashtable.cs
- Form.cs
- CompositeControl.cs
- TypeForwardedFromAttribute.cs
- InputBuffer.cs
- SqlReferenceCollection.cs
- MatrixAnimationUsingPath.cs
- WebErrorHandler.cs
- NetworkInterface.cs
- LayoutUtils.cs
- Utils.cs
- KernelTypeValidation.cs
- Zone.cs
- DataGridColumn.cs
- PackageStore.cs
- DbConnectionStringCommon.cs
- ManagementNamedValueCollection.cs
- FontUnit.cs
- ContainsRowNumberChecker.cs
- HttpConfigurationSystem.cs
- DiagnosticTraceSource.cs
- ContractMapping.cs
- XmlSchemaSimpleContentExtension.cs
- TypeListConverter.cs
- DataSourceExpression.cs
- SR.cs
- TemplateColumn.cs
- WebColorConverter.cs
- ButtonFieldBase.cs