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
- SocketPermission.cs
- XsltLibrary.cs
- ClientConvert.cs
- CaseInsensitiveComparer.cs
- MediaElementAutomationPeer.cs
- CurrencyManager.cs
- UIPermission.cs
- ListChangedEventArgs.cs
- Geometry3D.cs
- BStrWrapper.cs
- CharConverter.cs
- ComEventsInfo.cs
- CommonProperties.cs
- SiteMembershipCondition.cs
- IListConverters.cs
- DllHostedComPlusServiceHost.cs
- XmlIncludeAttribute.cs
- DesignerObject.cs
- Transform.cs
- CheckedListBox.cs
- OrderByLifter.cs
- CLSCompliantAttribute.cs
- Int32Rect.cs
- PrinterSettings.cs
- RangeValuePattern.cs
- OracleMonthSpan.cs
- StackBuilderSink.cs
- TypefaceMap.cs
- PnrpPermission.cs
- DbDataReader.cs
- ErrorHandler.cs
- transactioncontext.cs
- FormattedText.cs
- StyleConverter.cs
- HwndStylusInputProvider.cs
- DiscoveryMessageProperty.cs
- RSAProtectedConfigurationProvider.cs
- StateRuntime.cs
- OutKeywords.cs
- SingleAnimationBase.cs
- Expander.cs
- WorkflowItemsPresenter.cs
- SqlFileStream.cs
- BuildResultCache.cs
- EditorZoneBase.cs
- AutomationElementCollection.cs
- DesignerDataTableBase.cs
- ManagedIStream.cs
- BaseCodeDomTreeGenerator.cs
- DiscoveryReference.cs
- ComplexPropertyEntry.cs
- OleDbConnectionFactory.cs
- Nullable.cs
- _HeaderInfo.cs
- Part.cs
- Size3D.cs
- SystemIPv4InterfaceProperties.cs
- SqlDataSourceCache.cs
- ToolStripItemTextRenderEventArgs.cs
- DataSourceXmlElementAttribute.cs
- BitmapSizeOptions.cs
- PriorityRange.cs
- IsolatedStorageException.cs
- SubclassTypeValidator.cs
- DataGridViewRowEventArgs.cs
- WindowsTooltip.cs
- ColumnTypeConverter.cs
- TypedTableBaseExtensions.cs
- ActiveXHost.cs
- SafeThemeHandle.cs
- TreeViewImageIndexConverter.cs
- FontFamilyIdentifier.cs
- EdmProperty.cs
- StylusCaptureWithinProperty.cs
- ToolStripRendererSwitcher.cs
- ErrorWrapper.cs
- NetDataContractSerializer.cs
- QilFunction.cs
- AmbientValueAttribute.cs
- PointCollectionConverter.cs
- GlyphRun.cs
- RequiredAttributeAttribute.cs
- ResourceProviderFactory.cs
- DesignerSerializerAttribute.cs
- BoolExpressionVisitors.cs
- MergeFailedEvent.cs
- StorageEntityContainerMapping.cs
- TableColumnCollectionInternal.cs
- MultipleViewProviderWrapper.cs
- WinEventTracker.cs
- StandardMenuStripVerb.cs
- AuthenticationModulesSection.cs
- OutgoingWebResponseContext.cs
- GlyphsSerializer.cs
- SqlProviderManifest.cs
- _ListenerRequestStream.cs
- ContentPosition.cs
- XmlNotation.cs
- SqlExpander.cs
- SchemaAttDef.cs