33 overrides of Bounds
System.Windows.Forms (31)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
44
public override unsafe Rectangle
Bounds
=> SystemIAccessible.TryGetLocation(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
34
public override Rectangle
Bounds
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
33
public override Rectangle
Bounds
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
26
public override Rectangle
Bounds
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
29
public override Rectangle
Bounds
=> GetAccessibleObjectBounds(GetAccessibleObjectParent());
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
39
public override Rectangle
Bounds
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
27
public override Rectangle
Bounds
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
53
public override Rectangle
Bounds
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
34
public override Rectangle
Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
39
public override Rectangle
Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
21
public override Rectangle
Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
32
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
53
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
45
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
52
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarHeaderAccessibleObject.cs (1)
43
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
28
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
28
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
48
public override Rectangle
Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
29
public override Rectangle
Bounds
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
28
public override Rectangle
Bounds
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
18
public override Rectangle
Bounds
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
23
public override Rectangle
Bounds
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
296
public override Rectangle
Bounds
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
22
public override Rectangle
Bounds
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
20
public override Rectangle
Bounds
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
23
public override Rectangle
Bounds
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
27
public override Rectangle
Bounds
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
33
public override Rectangle
Bounds
System\Windows\Forms\Form.AccessibleObject.cs (1)
21
public override Rectangle
Bounds
=> this.IsOwnerHandleCreated(out Control? owner)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
21
public override Rectangle
Bounds
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
27
public override Rectangle
Bounds
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
24
public override Rectangle
Bounds
=> _control.AccessibilityObject.Bounds;
231 references to Bounds
System.Windows.Forms (43)
System\Windows\Forms\Accessibility\AccessibleObject.cs (6)
546
if (child is not null && child.
Bounds
.Contains(x, y))
562
return
Bounds
.Contains(x, y) ? this : null;
616
UIA_PROPERTY_ID.UIA_BoundingRectanglePropertyId => UiaTextProvider.BoundingRectangleAsVariant(
Bounds
),
718
internal virtual Rectangle BoundingRectangle =>
Bounds
;
1697
Rectangle bounds =
Bounds
;
1710
Rectangle bounds = child.
Bounds
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
38
return _owner.AccessibilityObject.
Bounds
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
162
if (!_owningComboBox.DroppedDown || !_owningComboBox.ChildListAccessibleObject.
Bounds
.IntersectsWith(Bounds))
178
Rectangle listBounds = _owningComboBox.ChildListAccessibleObject.
Bounds
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1789
if (IsAccessibilityObjectCreated && _childEdit is not null && ChildEditAccessibleObject.
Bounds
.Contains(PointToScreen(e.Location)))
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
24
=> this.TryGetOwnerAs(out Panel? owner) ? owner.AccessibilityObject.
Bounds
: default;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
291
Rectangle IKeyboardToolTip.GetNativeScreenRectangle() => AccessibilityObject.
Bounds
;
326
_nonEmptyNeighbors.Add(DataGridView.Rows[i].Cells[j].AccessibilityObject.
Bounds
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
325
Rectangle rowRect = parentAccObject.
Bounds
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
61
Rectangle dataGridViewRect = ParentPrivate!.
Bounds
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
33
Rectangle rowRect = ParentPrivate.
Bounds
;
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
72
return
Bounds
.Contains(x, y) ? this : null;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (2)
261
if (child is not null && child.
Bounds
.Contains(x, y))
268
if (
Bounds
.Contains(x, y))
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
299
if (visibleGroups[i].AccessibilityObject?.
Bounds
.Contains(hitTestPoint) == true)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
63
Rectangle listViewBounds = _owningListView.AccessibilityObject.
Bounds
;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (5)
46
neighboringRectangles.Add(AccessibilityObject.
Bounds
);
50
neighboringRectangles.Add(_listView.Items[Index - 1].AccessibilityObject.
Bounds
);
55
neighboringRectangles.Add(_listView.Items[Index + 1].AccessibilityObject.
Bounds
);
70
bool IKeyboardToolTip.IsHoveredWithMouse() => _listView?.AccessibilityObject.
Bounds
.Contains(Control.MousePosition) ?? false;
96
Rectangle listviewBounds = _listView.AccessibilityObject.
Bounds
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
43
_owningListView.AccessibilityObject.
Bounds
.X + _owningItem.Bounds.X,
44
_owningListView.AccessibilityObject.
Bounds
.Y + _owningItem.Bounds.Y,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (2)
21
_owningListView.AccessibilityObject.
Bounds
.X + _owningItem.Bounds.X,
22
_owningListView.AccessibilityObject.
Bounds
.Y + _owningItem.Bounds.Y,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (2)
64
_owningListView.AccessibilityObject.
Bounds
.X + bounds.X,
65
_owningListView.AccessibilityObject.
Bounds
.Y + bounds.Y,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
62
RECT rectangle =
Bounds
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
605
Rectangle parent = gridEntry.OwnerGrid.GridViewAccessibleObject.
Bounds
;
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
92
&& owner.SelectedTab.AccessibilityObject.
Bounds
.Contains(point))
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
208
return selectedTab.AccessibilityObject.
Bounds
.Contains(MousePosition);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
60
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_toolStripControlHost?.Placement,
Bounds
),
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3547
Rectangle IKeyboardToolTip.GetNativeScreenRectangle() => AccessibilityObject.
Bounds
;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
36
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerToolStripProgressBarControl.Owner?.Placement,
Bounds
),
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
25
UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId when this.TryGetOwnerAs(out TextBox? owner) => (VARIANT)GetIsOffscreenPropertyValue(owner.ToolStripControlHost?.Placement,
Bounds
),
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
45
bool IKeyboardToolTip.IsHoveredWithMouse() => TreeView?.AccessibilityObject.
Bounds
.Contains(Control.MousePosition) ?? false;
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
72
return
Bounds
.Contains(x, y) ? this : null;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
70
if (control.AccessibilityObject.
Bounds
.Contains(x, y))
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
24
public override Rectangle Bounds => _control.AccessibilityObject.
Bounds
;
System\Windows\Forms\Design\DesignerFrame.cs (1)
550
if (cao.
Bounds
.Contains(x, y))
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
44
var accessibleObject = CreateAccessibleObject(mock => mock.Setup(a => a.
Bounds
).Returns(expectedBounds));
System.Windows.Forms.Tests (180)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (33)
23
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
317
.Setup(a => a.
Bounds
)
338
.Setup(a => a.
Bounds
)
384
.Setup(a => a.
Bounds
)
388
.Setup(a => a.
Bounds
)
618
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
636
Assert.Equal(0, accessibleObject.
Bounds
.Width);
637
Assert.Equal(0, accessibleObject.
Bounds
.Height);
658
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
684
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
702
Assert.Equal(0, accessibleObject.
Bounds
.Width);
703
Assert.Equal(0, accessibleObject.
Bounds
.Height);
721
Assert.Equal(0, accessibleObject.
Bounds
.Width);
722
Assert.Equal(0, accessibleObject.
Bounds
.Height);
740
Assert.Equal(0, accessibleObject.
Bounds
.Width);
741
Assert.Equal(0, accessibleObject.
Bounds
.Height);
762
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
783
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
804
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
966
.Setup(a => a.
Bounds
)
988
.Setup(a => a.
Bounds
)
1036
.Setup(a => a.
Bounds
)
1040
.Setup(a => a.
Bounds
)
1070
.Setup(a => a.
Bounds
)
1079
mockAccessibleObject.Verify(a => a.
Bounds
, Times.Once());
1089
.Setup(a => a.
Bounds
)
1094
.Setup(a => a.
Bounds
)
1118
mockAccessibleObjectChild1.Verify(a => a.
Bounds
, Times.Exactly(child1CallCount));
1119
mockAccessibleObjectChild2.Verify(a => a.
Bounds
, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (2)
29
int listBoxHeight = checkedListBox.AccessibilityObject.
Bounds
.Height;
35
sumItemsHeight += item.
Bounds
.Height;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
329
if (dropDownRect.IntersectsWith(itemAccessibleObject.
Bounds
))
346
if (dropDownRect.IntersectsWith(itemAccessibleObject.
Bounds
))
407
Rectangle actual = itemAccessibleObject.
Bounds
;
469
Rectangle actual = itemAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
67
Assert.True(accessibleObject.
Bounds
.X >= 0);
68
Assert.True(accessibleObject.
Bounds
.Y >= 0);
69
Assert.Equal(0, accessibleObject.
Bounds
.Width);
70
Assert.Equal(0, accessibleObject.
Bounds
.Height);
102
Assert.True(accessibleObject.
Bounds
.X >= 0);
103
Assert.True(accessibleObject.
Bounds
.Y >= 0);
104
Assert.Equal(0, accessibleObject.
Bounds
.Width);
105
Assert.Equal(0, accessibleObject.
Bounds
.Height);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (6)
152
int actualWidth = accessibleObject.
Bounds
.Width;
156
int actualHeight = accessibleObject.
Bounds
.Height;
160
Rectangle actualBounds = accessibleObject.
Bounds
;
175
int actualWidth = accessibleObject.
Bounds
.Width;
178
int actualHeight = accessibleObject.
Bounds
.Height;
181
Rectangle actualBounds = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
118
Assert.Equal(expected, accessibleObject.
Bounds
);
131
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (2)
52
Assert.Equal(expected, accessibleObject.
Bounds
);
65
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
32
Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.
Bounds
);
43
Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.
Bounds
);
56
Assert.NotEqual(Rectangle.Empty, cell.AccessibilityObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (2)
38
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
58
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
46
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
57
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
46
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
172
itemAccessibleObject.
Bounds
.Should().Be(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
1225
Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).
Bounds
.Location));
1226
Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).
Bounds
.Location));
1227
Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).
Bounds
.Location));
1228
Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).
Bounds
.Location));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
299
int actualWidth = group1AccObj.
Bounds
.Width;
303
int actualHeight = group1AccObj.
Bounds
.Height;
307
Rectangle actualBounds = group1AccObj.
Bounds
;
337
int actualWidth = groupAccObj.
Bounds
.Width;
341
int actualHeight = groupAccObj.
Bounds
.Height;
345
Rectangle actualBounds = groupAccObj.
Bounds
;
1198
Rectangle listViewBounds = listView.AccessibilityObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (25)
200
Assert.Equal(Rectangle.Empty, subItemAccObj1.
Bounds
);
201
Assert.Equal(Rectangle.Empty, subItemAccObj2.
Bounds
);
202
Assert.Equal(Rectangle.Empty, subItemAccObj3.
Bounds
);
204
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
205
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
206
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
230
Assert.NotEqual(Rectangle.Empty, subItemAccObj1.
Bounds
);
231
Assert.NotEqual(Rectangle.Empty, subItemAccObj2.
Bounds
);
232
Assert.NotEqual(Rectangle.Empty, subItemAccObj3.
Bounds
);
234
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
235
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
236
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
260
Assert.Equal(Rectangle.Empty, subItemAccObj1.
Bounds
);
261
Assert.Equal(Rectangle.Empty, subItemAccObj2.
Bounds
);
262
Assert.Equal(Rectangle.Empty, subItemAccObj3.
Bounds
);
264
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
265
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
266
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
657
int actualWidth = accessibleObject.
Bounds
.Width;
661
int actualHeight = accessibleObject.
Bounds
.Height;
665
Rectangle actualBounds = accessibleObject.
Bounds
;
886
Assert.Equal(itemAccessibleObject.
Bounds
, subItemAccessibleObject.
Bounds
);
908
Assert.NotEqual(itemAccessibleObject.
Bounds
, subItemAccessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
37
Rectangle bounds = calendar.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (2)
35
Assert.Equal(217, accessibleObject.
Bounds
.Width);
36
Assert.Equal(106, accessibleObject.
Bounds
.Height);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
53
Rectangle actual = cellAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
53
Rectangle actual = headerAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
38
Rectangle actual = nextButtonAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
135
Assert.Equal(Rectangle.Empty, panelAccessibleObject.
Bounds
);
153
Assert.Equal(expected, panel.RectangleToClient(panelAccessibleObject.
Bounds
));
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
105
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
119
Assert.Equal(controlClientRectangle, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
26
Assert.Equal(ownerControl.ClientSize, accessibilityObject.
Bounds
.Size);
51
Assert.Equal(Rectangle.Empty.Size, accessibilityObject.
Bounds
.Size);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
134
Rectangle gridViewBounds = propertyGrid.RectangleToClient(accessibleObject.
Bounds
);
245
Rectangle gridViewRectangle = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (3)
27
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
39
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
50
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (4)
93
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
296
Point point = expectedAccessibleObject.
Bounds
.Location;
314
Point point = expectedAccessibleObject.
Bounds
.Location;
332
Point point = expectedAccessibleObject.
Bounds
.Location;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
30
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
97
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (2)
33
(bool)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId) || (accessibleObject.
Bounds
.Width > 0 && accessibleObject.
Bounds
.Height > 0);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (2)
125
(toolStripItemAccessibleObject.
Bounds
.Width > 0 && toolStripItemAccessibleObject.
Bounds
.Height > 0));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
27
Assert.Equal(ownerControl.Size, accessibilityObject.
Bounds
.Size);
52
Assert.Equal(Rectangle.Empty.Size, accessibilityObject.
Bounds
.Size);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
21
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
32
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
43
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (4)
21
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
32
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
43
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
154
var bounds = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
21
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
32
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
616
accessibleObject.
Bounds
.Should().Be(Rectangle.Empty);
620
accessibleObject.
Bounds
.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
236
Point point = accessibleObject.
Bounds
.Location;
251
Point point = new(accessibleObject.
Bounds
.X, accessibleObject.
Bounds
.Bottom - 1);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
55
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
46
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\DataGridViewCellTests.cs (11)
4811
Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.
Bounds
));
4812
Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.
Bounds
));
4813
Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.
Bounds
));
4816
Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.
Bounds
));
4817
Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.
Bounds
));
4818
Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.
Bounds
));
4819
Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.
Bounds
));
4820
Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.
Bounds
));
4823
Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.
Bounds
));
4824
Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.
Bounds
));
4825
Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.
Bounds
));
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
712
Point position = listView.AccessibilityObject.
Bounds
.Location;
System\Windows\Forms\MonthCalendarTests.cs (3)
4316
Rectangle actual = todayLinkAccessibleObject.
Bounds
;
4330
Rectangle bounds = previousButtonAccessibleObject.
Bounds
;
4355
Rectangle actual = rowAccessibleObject.
Bounds
;
System\Windows\Forms\ScrollBarTests.cs (16)
2941
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Width > 0);
2942
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Height > 0);
2955
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Width == 0 || HFirstPageButton(hScrollBar).
Bounds
.Height == 0);
2985
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Width > 0);
2986
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Height > 0);
2999
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Width == 0 || HLastPageButton(hScrollBar).
Bounds
.Height == 0);
3029
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Width == 0 || VFirstPageButton(vScrollBar).
Bounds
.Height == 0);
3042
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Width > 0);
3043
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Height > 0);
3056
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Width == 0 || VLastPageButton(vScrollBar).
Bounds
.Height == 0);
3086
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Width > 0);
3087
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Height > 0);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
383
Point position = treeView.AccessibilityObject.
Bounds
.Location;
System.Windows.Forms.UI.IntegrationTests (5)
ListBoxItemAccessibleObjestTests.cs (2)
20
var boundsBeforeHandleCreation = itemAccessibleObject.
Bounds
;
28
var boundsAfterHandleCreation = itemAccessibleObject.
Bounds
;
MonthCalendarTests.cs (2)
178
return cell.
Bounds
.Location + (cell.
Bounds
.Size / 2);
PropertyGridViewTests.cs (1)
53
Assert.Equal(heightSum, propertyGridView.AccessibilityObject.
Bounds
.Height - borderHeight - entriesBorders);