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