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
- ComplexType.cs
- SystemIPAddressInformation.cs
- DataGridViewCellCancelEventArgs.cs
- AutomationPropertyInfo.cs
- ApplicationBuildProvider.cs
- StringUtil.cs
- TransformerConfigurationWizardBase.cs
- DataGridSortCommandEventArgs.cs
- MsmqInputMessage.cs
- AutoGeneratedField.cs
- _Rfc2616CacheValidators.cs
- CodeNamespace.cs
- Menu.cs
- ClosableStream.cs
- ClientRoleProvider.cs
- ContentElement.cs
- CompleteWizardStep.cs
- AccessViolationException.cs
- ConfigurationValue.cs
- EntityDataSourceValidationException.cs
- UniqueSet.cs
- LabelEditEvent.cs
- CapabilitiesRule.cs
- ObjectViewEntityCollectionData.cs
- SqlInternalConnectionSmi.cs
- MimeFormatExtensions.cs
- TextTreeInsertUndoUnit.cs
- LogManagementAsyncResult.cs
- UriSection.cs
- SocketManager.cs
- LogicalExpr.cs
- HelpEvent.cs
- WpfGeneratedKnownTypes.cs
- SamlAuthenticationStatement.cs
- DatasetMethodGenerator.cs
- PathFigureCollectionValueSerializer.cs
- HotCommands.cs
- WindowsToolbarItemAsMenuItem.cs
- _NTAuthentication.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- DataObjectEventArgs.cs
- NumberFormatInfo.cs
- KnownTypes.cs
- XmlReflectionImporter.cs
- RadioButton.cs
- Attributes.cs
- Funcletizer.cs
- ApplicationServicesHostFactory.cs
- LinkAreaEditor.cs
- TagMapInfo.cs
- RetrieveVirtualItemEventArgs.cs
- ClientFormsAuthenticationCredentials.cs
- UpdateCompiler.cs
- Emitter.cs
- DecimalStorage.cs
- TableItemPattern.cs
- RtfFormatStack.cs
- OracleFactory.cs
- ActivationServices.cs
- XmlCharCheckingWriter.cs
- SqlFacetAttribute.cs
- BackStopAuthenticationModule.cs
- WebPartsPersonalizationAuthorization.cs
- CustomLineCap.cs
- TextSchema.cs
- FrameworkPropertyMetadata.cs
- PermissionToken.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SoapSchemaImporter.cs
- SerializationTrace.cs
- ObjectViewQueryResultData.cs
- BlurBitmapEffect.cs
- WebContext.cs
- DataRowCollection.cs
- TypeSystem.cs
- DrawingCollection.cs
- ContentType.cs
- EdmTypeAttribute.cs
- ProxyHwnd.cs
- SmiContext.cs
- SizeAnimationClockResource.cs
- UpDownBase.cs
- PartialTrustHelpers.cs
- XmlLoader.cs
- Lease.cs
- HostVisual.cs
- XamlWriter.cs
- ViewValidator.cs
- DataTable.cs
- OverrideMode.cs
- SchemaTypeEmitter.cs
- ApplicationActivator.cs
- PackageRelationship.cs
- MouseEvent.cs
- MenuItemStyleCollectionEditor.cs
- validationstate.cs
- ManagementDateTime.cs
- COM2FontConverter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ExecutionEngineException.cs