29 references to Bounds
System.Windows.Forms (11)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
388while (node is not null && node.Bounds.IsEmpty)
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (3)
18Rectangle IKeyboardToolTip.GetNativeScreenRectangle() => RectangleToScreen(Bounds); 28neighboringRectangles.Add(RectangleToScreen(nextNode.Bounds)); 33neighboringRectangles.Add(RectangleToScreen(prevNode.Bounds));
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
32return _owningTreeNode.RectangleToScreen(_owningTreeNode.Bounds);
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
2827Rectangle bounds = node.Bounds; 2929Rectangle bounds = tn.Bounds; 2965else if (tn is not null && tn.Bounds.Right > Bounds.Right) 3431client = new Point(treeNode.Bounds.X, treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1756if (node is not null && !node.Bounds.Contains(pt)) 2028Rectangle bounds = node.Bounds;
System.Windows.Forms.Tests (15)
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
440return treeView.RectangleToScreen(treeNode.Bounds);
System\Windows\Forms\TreeNodeCollectionTests.cs (4)
20Assert.True(treeNode.Bounds.X > 0); 21Assert.Equal(0, treeNode.Bounds.Y); 22Assert.True(treeNode.Bounds.Width > 0); 23Assert.True(treeNode.Bounds.Height > 0);
System\Windows\Forms\TreeNodeTests.cs (10)
18Assert.Equal(Rectangle.Empty, node.Bounds); 58Assert.Equal(Rectangle.Empty, node.Bounds); 106Assert.Equal(Rectangle.Empty, node.Bounds); 149Assert.Equal(Rectangle.Empty, node.Bounds); 197Assert.Equal(Rectangle.Empty, node.Bounds); 456Rectangle bounds = node.Bounds; 478Rectangle bounds = node.Bounds; 524Assert.Equal(expected, node.Bounds); 536Assert.Equal(Rectangle.Empty, node.Bounds); 548Assert.Equal(Rectangle.Empty, node.Bounds);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
101var dndStartCoordinates = treeView.PointToScreen(node.Bounds.Location);