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)
30
public override Rectangle
Bounds
=> GetAccessibleObjectBounds(GetAccessibleObjectParent());
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
40
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)
39
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;
230 references to Bounds
System.Windows.Forms (43)
System\Windows\Forms\Accessibility\AccessibleObject.cs (6)
547
if (child is not null && child.
Bounds
.Contains(x, y))
563
return
Bounds
.Contains(x, y) ? this : null;
617
UIA_PROPERTY_ID.UIA_BoundingRectanglePropertyId => UiaTextProvider.BoundingRectangleAsVariant(
Bounds
),
719
internal virtual Rectangle BoundingRectangle =>
Bounds
;
1698
Rectangle bounds =
Bounds
;
1711
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)
1788
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)
326
Rectangle rowRect = parentAccObject.
Bounds
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
62
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)
73
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))
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
68
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)
63
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)
3551
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.Tests (180)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (33)
21
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
315
.Setup(a => a.
Bounds
)
336
.Setup(a => a.
Bounds
)
382
.Setup(a => a.
Bounds
)
386
.Setup(a => a.
Bounds
)
616
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
634
Assert.Equal(0, accessibleObject.
Bounds
.Width);
635
Assert.Equal(0, accessibleObject.
Bounds
.Height);
656
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
682
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
700
Assert.Equal(0, accessibleObject.
Bounds
.Width);
701
Assert.Equal(0, accessibleObject.
Bounds
.Height);
719
Assert.Equal(0, accessibleObject.
Bounds
.Width);
720
Assert.Equal(0, accessibleObject.
Bounds
.Height);
738
Assert.Equal(0, accessibleObject.
Bounds
.Width);
739
Assert.Equal(0, accessibleObject.
Bounds
.Height);
760
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
781
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
802
Assert.Equal(accessibleObject.
Bounds
, accessibleObject.
Bounds
);
964
.Setup(a => a.
Bounds
)
986
.Setup(a => a.
Bounds
)
1034
.Setup(a => a.
Bounds
)
1038
.Setup(a => a.
Bounds
)
1068
.Setup(a => a.
Bounds
)
1077
mockAccessibleObject.Verify(a => a.
Bounds
, Times.Once());
1087
.Setup(a => a.
Bounds
)
1092
.Setup(a => a.
Bounds
)
1116
mockAccessibleObjectChild1.Verify(a => a.
Bounds
, Times.Exactly(child1CallCount));
1117
mockAccessibleObjectChild2.Verify(a => a.
Bounds
, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (2)
27
int listBoxHeight = checkedListBox.AccessibilityObject.
Bounds
.Height;
33
sumItemsHeight += item.
Bounds
.Height;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
327
if (dropDownRect.IntersectsWith(itemAccessibleObject.
Bounds
))
344
if (dropDownRect.IntersectsWith(itemAccessibleObject.
Bounds
))
405
Rectangle actual = itemAccessibleObject.
Bounds
;
467
Rectangle actual = itemAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
54
Assert.True(accessibleObject.
Bounds
.X >= 0);
55
Assert.True(accessibleObject.
Bounds
.Y >= 0);
56
Assert.Equal(0, accessibleObject.
Bounds
.Width);
57
Assert.Equal(0, accessibleObject.
Bounds
.Height);
89
Assert.True(accessibleObject.
Bounds
.X >= 0);
90
Assert.True(accessibleObject.
Bounds
.Y >= 0);
91
Assert.Equal(0, accessibleObject.
Bounds
.Width);
92
Assert.Equal(0, accessibleObject.
Bounds
.Height);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (6)
150
int actualWidth = accessibleObject.
Bounds
.Width;
154
int actualHeight = accessibleObject.
Bounds
.Height;
158
Rectangle actualBounds = accessibleObject.
Bounds
;
173
int actualWidth = accessibleObject.
Bounds
.Width;
176
int actualHeight = accessibleObject.
Bounds
.Height;
179
Rectangle actualBounds = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
116
Assert.Equal(expected, accessibleObject.
Bounds
);
129
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (2)
50
Assert.Equal(expected, accessibleObject.
Bounds
);
63
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)
36
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
56
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
55
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
44
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
174
itemAccessibleObject.
Bounds
.Should().Be(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
1223
Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).
Bounds
.Location));
1224
Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).
Bounds
.Location));
1225
Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).
Bounds
.Location));
1226
Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).
Bounds
.Location));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
297
int actualWidth = group1AccObj.
Bounds
.Width;
301
int actualHeight = group1AccObj.
Bounds
.Height;
305
Rectangle actualBounds = group1AccObj.
Bounds
;
335
int actualWidth = groupAccObj.
Bounds
.Width;
339
int actualHeight = groupAccObj.
Bounds
.Height;
343
Rectangle actualBounds = groupAccObj.
Bounds
;
1197
Rectangle listViewBounds = listView.AccessibilityObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (25)
198
Assert.Equal(Rectangle.Empty, subItemAccObj1.
Bounds
);
199
Assert.Equal(Rectangle.Empty, subItemAccObj2.
Bounds
);
200
Assert.Equal(Rectangle.Empty, subItemAccObj3.
Bounds
);
202
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
203
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
204
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
228
Assert.NotEqual(Rectangle.Empty, subItemAccObj1.
Bounds
);
229
Assert.NotEqual(Rectangle.Empty, subItemAccObj2.
Bounds
);
230
Assert.NotEqual(Rectangle.Empty, subItemAccObj3.
Bounds
);
232
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
233
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
234
Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
258
Assert.Equal(Rectangle.Empty, subItemAccObj1.
Bounds
);
259
Assert.Equal(Rectangle.Empty, subItemAccObj2.
Bounds
);
260
Assert.Equal(Rectangle.Empty, subItemAccObj3.
Bounds
);
262
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.
Bounds
);
263
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.
Bounds
);
264
Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.
Bounds
);
655
int actualWidth = accessibleObject.
Bounds
.Width;
659
int actualHeight = accessibleObject.
Bounds
.Height;
663
Rectangle actualBounds = accessibleObject.
Bounds
;
884
Assert.Equal(itemAccessibleObject.
Bounds
, subItemAccessibleObject.
Bounds
);
906
Assert.NotEqual(itemAccessibleObject.
Bounds
, subItemAccessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
35
Rectangle bounds = calendar.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (2)
33
Assert.Equal(217, accessibleObject.
Bounds
.Width);
34
Assert.Equal(106, accessibleObject.
Bounds
.Height);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
51
Rectangle actual = cellAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
51
Rectangle actual = headerAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
36
Rectangle actual = nextButtonAccessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
133
Assert.Equal(Rectangle.Empty, panelAccessibleObject.
Bounds
);
151
Assert.Equal(expected, panel.RectangleToClient(panelAccessibleObject.
Bounds
));
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
103
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
117
Assert.Equal(controlClientRectangle, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
24
Assert.Equal(ownerControl.ClientSize, accessibilityObject.
Bounds
.Size);
49
Assert.Equal(Rectangle.Empty.Size, accessibilityObject.
Bounds
.Size);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
132
Rectangle gridViewBounds = propertyGrid.RectangleToClient(accessibleObject.
Bounds
);
243
Rectangle gridViewRectangle = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (3)
25
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
37
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
48
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (4)
91
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
294
Point point = expectedAccessibleObject.
Bounds
.Location;
312
Point point = expectedAccessibleObject.
Bounds
.Location;
330
Point point = expectedAccessibleObject.
Bounds
.Location;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
28
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
95
Assert.Equal(boundsIsEmpty, accessibleObject.
Bounds
.IsEmpty);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (2)
31
(bool)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId) || (accessibleObject.
Bounds
.Width > 0 && accessibleObject.
Bounds
.Height > 0);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (2)
123
(toolStripItemAccessibleObject.
Bounds
.Width > 0 && toolStripItemAccessibleObject.
Bounds
.Height > 0));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
25
Assert.Equal(ownerControl.Size, accessibilityObject.
Bounds
.Size);
50
Assert.Equal(Rectangle.Empty.Size, accessibilityObject.
Bounds
.Size);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
19
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
30
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
41
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (4)
19
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
30
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
41
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
152
var bounds = accessibleObject.
Bounds
;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
19
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
30
Assert.NotEqual(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
614
accessibleObject.
Bounds
.Should().Be(Rectangle.Empty);
618
accessibleObject.
Bounds
.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
234
Point point = accessibleObject.
Bounds
.Location;
249
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)
44
Assert.Equal(Rectangle.Empty, accessibleObject.
Bounds
);
System\Windows\Forms\DataGridViewCellTests.cs (11)
4809
Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.
Bounds
));
4810
Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.
Bounds
));
4811
Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.
Bounds
));
4814
Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.
Bounds
));
4815
Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.
Bounds
));
4816
Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.
Bounds
));
4817
Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.
Bounds
));
4818
Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.
Bounds
));
4821
Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.
Bounds
));
4822
Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.
Bounds
));
4823
Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.
Bounds
));
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
710
Point position = listView.AccessibilityObject.
Bounds
.Location;
System\Windows\Forms\MonthCalendarTests.cs (3)
4314
Rectangle actual = todayLinkAccessibleObject.
Bounds
;
4328
Rectangle bounds = previousButtonAccessibleObject.
Bounds
;
4353
Rectangle actual = rowAccessibleObject.
Bounds
;
System\Windows\Forms\ScrollBarTests.cs (16)
2939
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Width > 0);
2940
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Height > 0);
2953
Assert.True(HFirstPageButton(hScrollBar).
Bounds
.Width == 0 || HFirstPageButton(hScrollBar).
Bounds
.Height == 0);
2983
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Width > 0);
2984
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Height > 0);
2997
Assert.True(HLastPageButton(hScrollBar).
Bounds
.Width == 0 || HLastPageButton(hScrollBar).
Bounds
.Height == 0);
3027
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Width == 0 || VFirstPageButton(vScrollBar).
Bounds
.Height == 0);
3040
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Width > 0);
3041
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Height > 0);
3054
Assert.True(VLastPageButton(vScrollBar).
Bounds
.Width == 0 || VLastPageButton(vScrollBar).
Bounds
.Height == 0);
3084
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Width > 0);
3085
Assert.True(VFirstPageButton(vScrollBar).
Bounds
.Height > 0);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
381
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);