Author: calberto
Date: 2007-07-05 16:02:04 -0400 (Thu, 05 Jul 2007)
New Revision: 81432

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs
Log:
        * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.

2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-05 19:59:05 UTC (rev 81431)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-05 20:02:04 UTC (rev 81432)
@@ -1,5 +1,9 @@
 2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
+       * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
+
+2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
        * ListView.cs: Implement the so-incredibly broken 2.0 
        VirtualItemsSelectionRangeChanged event.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs  
2007-07-05 19:59:05 UTC (rev 81431)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewItem.cs  
2007-07-05 20:02:04 UTC (rev 81432)
@@ -678,6 +678,20 @@
                        // FIXME: TODO
                }
 
+#if NET_2_0
+               public ListViewSubItem GetSubItemAt (int x, int y)
+               {
+                       if (owner != null && owner.View != View.Details)
+                               return null;
+
+                       foreach (ListViewSubItem sub_item in sub_items)
+                               if (sub_item.Bounds.Contains (x, y))
+                                       return sub_item;
+
+                       return null;
+               }
+#endif
+
                public virtual void Remove ()
                {
                        if (owner == null)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to