File: winforms\Managed\System\WinForms\TreeViewHitTestInfo.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="TreeViewHitTestInfo.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
namespace System.Windows.Forms {
 
    using System.Diagnostics;
    using System;
    
    /// <include file='doc\TreeViewHitTestInfo.uex' path='docs/doc[@for="TreeViewHitTestInfo"]/*' />
    /// <devdoc>
    ///    <para>
    ///       Specifies the return value for HITTEST on treeview.
    ///    </para>
    /// </devdoc>
    public class TreeViewHitTestInfo {
 
        private TreeViewHitTestLocations loc;
        private TreeNode node;
 
        /// <include file='doc\TreeViewHitTestInfo.uex' path='docs/doc[@for="TreeViewHitTestInfo.TreeViewHitTestInfo"]/*' />
        /// <devdoc>
        ///     Creates a TreeViewHitTestInfo instance.
        /// </devdoc>
        public TreeViewHitTestInfo(TreeNode hitNode, TreeViewHitTestLocations hitLocation) {
            this.node = hitNode;
            this.loc = hitLocation;
        }
        
 
        /// <include file='doc\TreeViewHitTestInfo.uex' path='docs/doc[@for="TreeViewHitTestInfo.Location"]/*' />
        /// <devdoc>
        ///     This gives the exact location returned by hit test on treeview.
        /// </devdoc>
        public TreeViewHitTestLocations Location {
            get {
                return loc;
            }
        }
        
        /// <include file='doc\TreeViewHitTestInfo.uex' path='docs/doc[@for="TreeViewHitTestInfo.Node"]/*' />
        /// <devdoc>
        ///     This gives the node returned by hit test on treeview.
        /// </devdoc>
        public TreeNode Node {
            get {
                return node;
            }
        }
    }
}