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