HitTestResult.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / HitTestResult.cs / 1 / HitTestResult.cs

                            //------------------------------------------------------------------------------ 
//  Microsoft Avalon
//  Copyright (c) Microsoft Corporation, 2003
//
//  File:       HitTestResult 
//-----------------------------------------------------------------------------
 
using System; 
using System.Windows.Media;
using System.Windows.Media.Animation; 
using System.Windows.Threading;

using System.Collections;
using System.Diagnostics; 
using MS.Internal;
 
namespace System.Windows.Media 
{
    ///  
    /// This base returns the visual that was hit during a hit test pass.
    /// 
    public abstract class HitTestResult
    { 
         private DependencyObject _visualHit;
 
         internal HitTestResult(DependencyObject visualHit) 
         {
             _visualHit = visualHit; 
         }

         /// 
         /// Returns the visual that was hit.  May be a Visual or Visual3D. 
         /// 
         public DependencyObject VisualHit 
         { 
             get
             { 
                 return _visualHit;
             }
         }
    } 
}
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------ 
//  Microsoft Avalon
//  Copyright (c) Microsoft Corporation, 2003
//
//  File:       HitTestResult 
//-----------------------------------------------------------------------------
 
using System; 
using System.Windows.Media;
using System.Windows.Media.Animation; 
using System.Windows.Threading;

using System.Collections;
using System.Diagnostics; 
using MS.Internal;
 
namespace System.Windows.Media 
{
    ///  
    /// This base returns the visual that was hit during a hit test pass.
    /// 
    public abstract class HitTestResult
    { 
         private DependencyObject _visualHit;
 
         internal HitTestResult(DependencyObject visualHit) 
         {
             _visualHit = visualHit; 
         }

         /// 
         /// Returns the visual that was hit.  May be a Visual or Visual3D. 
         /// 
         public DependencyObject VisualHit 
         { 
             get
             { 
                 return _visualHit;
             }
         }
    } 
}
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK