Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DragDrop.cs
- FontFamilyConverter.cs
- XXXOnTypeBuilderInstantiation.cs
- CompatibleIComparer.cs
- WorkItem.cs
- Resources.Designer.cs
- OutputCacheProfileCollection.cs
- SettingsProperty.cs
- SessionMode.cs
- GlyphInfoList.cs
- PropertyDescriptorCollection.cs
- Help.cs
- ConfigUtil.cs
- DependencyPropertyDescriptor.cs
- ClientScriptManager.cs
- Update.cs
- SRGSCompiler.cs
- CompositeDataBoundControl.cs
- unsafenativemethodstextservices.cs
- SettingsPropertyIsReadOnlyException.cs
- RelativeSource.cs
- DataGridLength.cs
- SqlCacheDependencyDatabaseCollection.cs
- NumericUpDown.cs
- StringCollectionEditor.cs
- PageTheme.cs
- DeclaredTypeElement.cs
- FailedToStartupUIException.cs
- PrivilegeNotHeldException.cs
- ColumnHeader.cs
- SkipQueryOptionExpression.cs
- HtmlSelect.cs
- ClosableStream.cs
- EntityContainerRelationshipSetEnd.cs
- ToolStripContainerActionList.cs
- DataGridViewColumnEventArgs.cs
- QilLiteral.cs
- CngUIPolicy.cs
- RadioButtonRenderer.cs
- EventPrivateKey.cs
- Transactions.cs
- Pkcs7Signer.cs
- SchemaNames.cs
- XmlQueryType.cs
- Padding.cs
- RotateTransform.cs
- DataPagerCommandEventArgs.cs
- DataGridColumnCollection.cs
- IntegerValidator.cs
- DesignerExtenders.cs
- PeerPresenceInfo.cs
- ServerTooBusyException.cs
- UDPClient.cs
- ScrollBar.cs
- VersionConverter.cs
- TaskHelper.cs
- XamlSerializationHelper.cs
- NameValueSectionHandler.cs
- WebHttpBindingElement.cs
- GradientStopCollection.cs
- UpdateExpressionVisitor.cs
- XmlDataSourceView.cs
- CodeDirectionExpression.cs
- TabControlCancelEvent.cs
- InputElement.cs
- FixedPage.cs
- MenuItemAutomationPeer.cs
- Stack.cs
- ResizeGrip.cs
- X509InitiatorCertificateClientElement.cs
- HostProtectionPermission.cs
- ImageAutomationPeer.cs
- CodeTypeReferenceCollection.cs
- DiscoveryMessageSequence.cs
- HotCommands.cs
- DnsPermission.cs
- DbMetaDataFactory.cs
- XmlWellformedWriter.cs
- ChildTable.cs
- securestring.cs
- TreeViewEvent.cs
- SqlCommandAsyncResult.cs
- SafeSystemMetrics.cs
- AsymmetricAlgorithm.cs
- TextSyndicationContentKindHelper.cs
- DocumentViewerHelper.cs
- InteropBitmapSource.cs
- UrlMappingsSection.cs
- DSASignatureFormatter.cs
- QueryableDataSourceHelper.cs
- ControlEvent.cs
- ItemCheckedEvent.cs
- QueryLifecycle.cs
- SqlTypesSchemaImporter.cs
- MILUtilities.cs
- GridEntryCollection.cs
- DeflateStream.cs
- InvalidCommandTreeException.cs
- TextBoxLine.cs
- Sequence.cs