33 overrides of Bounds
System.Windows.Forms (31)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
44public override unsafe Rectangle Bounds => SystemIAccessible.TryGetLocation(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
34public override Rectangle Bounds
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
33public override Rectangle Bounds
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
26public override Rectangle Bounds
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
30public override Rectangle Bounds => GetAccessibleObjectBounds(GetAccessibleObjectParent());
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
40public override Rectangle Bounds
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
27public override Rectangle Bounds
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
53public override Rectangle Bounds
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
39public override Rectangle Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
39public override Rectangle Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
21public override Rectangle Bounds
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
32public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
53public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
45public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
52public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarHeaderAccessibleObject.cs (1)
43public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
28public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
28public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
48public override Rectangle Bounds
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
29public override Rectangle Bounds
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
28public override Rectangle Bounds
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
18public override Rectangle Bounds
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
23public override Rectangle Bounds
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
296public override Rectangle Bounds
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
22public override Rectangle Bounds
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
20public override Rectangle Bounds
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
23public override Rectangle Bounds
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
27public override Rectangle Bounds
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
33public override Rectangle Bounds
System\Windows\Forms\Form.AccessibleObject.cs (1)
21public override Rectangle Bounds => this.IsOwnerHandleCreated(out Control? owner)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
21public override Rectangle Bounds
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
27public override Rectangle Bounds
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
24public override Rectangle Bounds => _control.AccessibilityObject.Bounds;
230 references to Bounds
System.Windows.Forms (43)
System\Windows\Forms\Accessibility\AccessibleObject.cs (6)
547if (child is not null && child.Bounds.Contains(x, y)) 563return Bounds.Contains(x, y) ? this : null; 617UIA_PROPERTY_ID.UIA_BoundingRectanglePropertyId => UiaTextProvider.BoundingRectangleAsVariant(Bounds), 719internal virtual Rectangle BoundingRectangle => Bounds; 1698Rectangle bounds = Bounds; 1711Rectangle bounds = child.Bounds;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
38return _owner.AccessibilityObject.Bounds;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
162if (!_owningComboBox.DroppedDown || !_owningComboBox.ChildListAccessibleObject.Bounds.IntersectsWith(Bounds)) 178Rectangle listBounds = _owningComboBox.ChildListAccessibleObject.Bounds;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1787if (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)
291Rectangle IKeyboardToolTip.GetNativeScreenRectangle() => AccessibilityObject.Bounds; 326_nonEmptyNeighbors.Add(DataGridView.Rows[i].Cells[j].AccessibilityObject.Bounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
326Rectangle rowRect = parentAccObject.Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
62Rectangle dataGridViewRect = ParentPrivate!.Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
33Rectangle rowRect = ParentPrivate.Bounds;
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
73return Bounds.Contains(x, y) ? this : null;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (2)
261if (child is not null && child.Bounds.Contains(x, y)) 268if (Bounds.Contains(x, y))
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
299if (visibleGroups[i].AccessibilityObject.Bounds.Contains(hitTestPoint))
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
68Rectangle listViewBounds = _owningListView.AccessibilityObject.Bounds;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (5)
46neighboringRectangles.Add(AccessibilityObject.Bounds); 50neighboringRectangles.Add(_listView.Items[Index - 1].AccessibilityObject.Bounds); 55neighboringRectangles.Add(_listView.Items[Index + 1].AccessibilityObject.Bounds); 70bool IKeyboardToolTip.IsHoveredWithMouse() => _listView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false; 96Rectangle 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)
63RECT rectangle = Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
605Rectangle 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)
208return selectedTab.AccessibilityObject.Bounds.Contains(MousePosition);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
60UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_toolStripControlHost?.Placement, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3551Rectangle IKeyboardToolTip.GetNativeScreenRectangle() => AccessibilityObject.Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
36UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId => (VARIANT)GetIsOffscreenPropertyValue(_ownerToolStripProgressBarControl.Owner?.Placement, Bounds),
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
25UIA_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)
45bool IKeyboardToolTip.IsHoveredWithMouse() => TreeView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false;
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
72return Bounds.Contains(x, y) ? this : null;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
70if (control.AccessibilityObject.Bounds.Contains(x, y))
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
24public override Rectangle Bounds => _control.AccessibilityObject.Bounds;
System\Windows\Forms\Design\DesignerFrame.cs (1)
550if (cao.Bounds.Contains(x, y))
System.Windows.Forms.Tests (180)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (33)
21Assert.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) 616Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 634Assert.Equal(0, accessibleObject.Bounds.Width); 635Assert.Equal(0, accessibleObject.Bounds.Height); 656Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 682Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 700Assert.Equal(0, accessibleObject.Bounds.Width); 701Assert.Equal(0, accessibleObject.Bounds.Height); 719Assert.Equal(0, accessibleObject.Bounds.Width); 720Assert.Equal(0, accessibleObject.Bounds.Height); 738Assert.Equal(0, accessibleObject.Bounds.Width); 739Assert.Equal(0, accessibleObject.Bounds.Height); 760Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 781Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 802Assert.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) 1077mockAccessibleObject.Verify(a => a.Bounds, Times.Once()); 1087.Setup(a => a.Bounds) 1092.Setup(a => a.Bounds) 1116mockAccessibleObjectChild1.Verify(a => a.Bounds, Times.Exactly(child1CallCount)); 1117mockAccessibleObjectChild2.Verify(a => a.Bounds, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (2)
27int listBoxHeight = checkedListBox.AccessibilityObject.Bounds.Height; 33sumItemsHeight += item.Bounds.Height;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
327if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds)) 344if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds)) 405Rectangle actual = itemAccessibleObject.Bounds; 467Rectangle actual = itemAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
54Assert.True(accessibleObject.Bounds.X >= 0); 55Assert.True(accessibleObject.Bounds.Y >= 0); 56Assert.Equal(0, accessibleObject.Bounds.Width); 57Assert.Equal(0, accessibleObject.Bounds.Height); 89Assert.True(accessibleObject.Bounds.X >= 0); 90Assert.True(accessibleObject.Bounds.Y >= 0); 91Assert.Equal(0, accessibleObject.Bounds.Width); 92Assert.Equal(0, accessibleObject.Bounds.Height);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (6)
150int actualWidth = accessibleObject.Bounds.Width; 154int actualHeight = accessibleObject.Bounds.Height; 158Rectangle actualBounds = accessibleObject.Bounds; 173int actualWidth = accessibleObject.Bounds.Width; 176int actualHeight = accessibleObject.Bounds.Height; 179Rectangle actualBounds = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
116Assert.Equal(expected, accessibleObject.Bounds); 129Assert.Throws<InvalidOperationException>(() => accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (2)
50Assert.Equal(expected, accessibleObject.Bounds); 63Assert.Throws<InvalidOperationException>(() => accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
32Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.Bounds); 43Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.Bounds); 56Assert.NotEqual(Rectangle.Empty, cell.AccessibilityObject.Bounds);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (2)
36Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 56Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 55Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
174itemAccessibleObject.Bounds.Should().Be(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
1223Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).Bounds.Location)); 1224Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).Bounds.Location)); 1225Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).Bounds.Location)); 1226Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).Bounds.Location));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
297int actualWidth = group1AccObj.Bounds.Width; 301int actualHeight = group1AccObj.Bounds.Height; 305Rectangle actualBounds = group1AccObj.Bounds; 335int actualWidth = groupAccObj.Bounds.Width; 339int actualHeight = groupAccObj.Bounds.Height; 343Rectangle actualBounds = groupAccObj.Bounds; 1197Rectangle listViewBounds = listView.AccessibilityObject.Bounds;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (25)
198Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 199Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 200Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 202Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 203Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 204Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 228Assert.NotEqual(Rectangle.Empty, subItemAccObj1.Bounds); 229Assert.NotEqual(Rectangle.Empty, subItemAccObj2.Bounds); 230Assert.NotEqual(Rectangle.Empty, subItemAccObj3.Bounds); 232Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 233Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 234Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 258Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 259Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 260Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 262Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 263Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 264Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 655int actualWidth = accessibleObject.Bounds.Width; 659int actualHeight = accessibleObject.Bounds.Height; 663Rectangle actualBounds = accessibleObject.Bounds; 884Assert.Equal(itemAccessibleObject.Bounds, subItemAccessibleObject.Bounds); 906Assert.NotEqual(itemAccessibleObject.Bounds, subItemAccessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
35Rectangle bounds = calendar.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (2)
33Assert.Equal(217, accessibleObject.Bounds.Width); 34Assert.Equal(106, accessibleObject.Bounds.Height);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
51Rectangle actual = cellAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
51Rectangle actual = headerAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
36Rectangle actual = nextButtonAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
133Assert.Equal(Rectangle.Empty, panelAccessibleObject.Bounds); 151Assert.Equal(expected, panel.RectangleToClient(panelAccessibleObject.Bounds));
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
103Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 117Assert.Equal(controlClientRectangle, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
24Assert.Equal(ownerControl.ClientSize, accessibilityObject.Bounds.Size); 49Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
132Rectangle gridViewBounds = propertyGrid.RectangleToClient(accessibleObject.Bounds); 243Rectangle gridViewRectangle = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (3)
25Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 37Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 48Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (4)
91Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty); 294Point point = expectedAccessibleObject.Bounds.Location; 312Point point = expectedAccessibleObject.Bounds.Location; 330Point point = expectedAccessibleObject.Bounds.Location;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
28Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
95Assert.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)
25Assert.Equal(ownerControl.Size, accessibilityObject.Bounds.Size); 50Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
19Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 30Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 41Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (4)
19Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 30Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 41Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 152var bounds = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
19Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 30Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
614accessibleObject.Bounds.Should().Be(Rectangle.Empty); 618accessibleObject.Bounds.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
234Point point = accessibleObject.Bounds.Location; 249Point point = new(accessibleObject.Bounds.X, accessibleObject.Bounds.Bottom - 1);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 55Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\DataGridViewCellTests.cs (11)
4809Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.Bounds)); 4810Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4811Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.Bounds)); 4814Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.Bounds)); 4815Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.Bounds)); 4816Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.Bounds)); 4817Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.Bounds)); 4818Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4821Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.Bounds)); 4822Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.Bounds)); 4823Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.Bounds));
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
710Point position = listView.AccessibilityObject.Bounds.Location;
System\Windows\Forms\MonthCalendarTests.cs (3)
4314Rectangle actual = todayLinkAccessibleObject.Bounds; 4328Rectangle bounds = previousButtonAccessibleObject.Bounds; 4353Rectangle actual = rowAccessibleObject.Bounds;
System\Windows\Forms\ScrollBarTests.cs (16)
2939Assert.True(HFirstPageButton(hScrollBar).Bounds.Width > 0); 2940Assert.True(HFirstPageButton(hScrollBar).Bounds.Height > 0); 2953Assert.True(HFirstPageButton(hScrollBar).Bounds.Width == 0 || HFirstPageButton(hScrollBar).Bounds.Height == 0); 2983Assert.True(HLastPageButton(hScrollBar).Bounds.Width > 0); 2984Assert.True(HLastPageButton(hScrollBar).Bounds.Height > 0); 2997Assert.True(HLastPageButton(hScrollBar).Bounds.Width == 0 || HLastPageButton(hScrollBar).Bounds.Height == 0); 3027Assert.True(VFirstPageButton(vScrollBar).Bounds.Width == 0 || VFirstPageButton(vScrollBar).Bounds.Height == 0); 3040Assert.True(VLastPageButton(vScrollBar).Bounds.Width > 0); 3041Assert.True(VLastPageButton(vScrollBar).Bounds.Height > 0); 3054Assert.True(VLastPageButton(vScrollBar).Bounds.Width == 0 || VLastPageButton(vScrollBar).Bounds.Height == 0); 3084Assert.True(VFirstPageButton(vScrollBar).Bounds.Width > 0); 3085Assert.True(VFirstPageButton(vScrollBar).Bounds.Height > 0);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
381Point position = treeView.AccessibilityObject.Bounds.Location;
System.Windows.Forms.UI.IntegrationTests (5)
ListBoxItemAccessibleObjestTests.cs (2)
20var boundsBeforeHandleCreation = itemAccessibleObject.Bounds; 28var boundsAfterHandleCreation = itemAccessibleObject.Bounds;
MonthCalendarTests.cs (2)
178return cell.Bounds.Location + (cell.Bounds.Size / 2);
PropertyGridViewTests.cs (1)
53Assert.Equal(heightSum, propertyGridView.AccessibilityObject.Bounds.Height - borderHeight - entriesBorders);