* TreeView.cs: Store the treenodes plus/minus box bounds when it
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / TreeNode.cs
index bf597a27993b8216f2d79c0d3d7ac950d0c58ebe..5f8353fe311b92330fcf5367e809f29861b1e1f4 100644 (file)
@@ -43,6 +43,7 @@ namespace System.Windows.Forms {
                
                private bool is_expanded = true;
                private Rectangle bounds = Rectangle.Empty;
+               internal Rectangle plus_minus_bounds = Rectangle.Empty;
                private bool check;
                internal OwnerDrawPropertyBag prop_bag;
 
@@ -412,6 +413,14 @@ namespace System.Windows.Forms {
                        bounds.Height = height;
                }
 
+               internal void UpdatePlusMinusBounds (int x, int y, int width, int height)
+               {
+                       plus_minus_bounds.X = x;
+                       plus_minus_bounds.Y = y;
+                       plus_minus_bounds.Width = width;
+                       plus_minus_bounds.Height = height;
+               }
+
                internal void SetAddedData (TreeView tree_view, TreeNode parent, int index)
                {
                        this.tree_view = tree_view;