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)
29public override Rectangle Bounds => GetAccessibleObjectBounds(GetAccessibleObjectParent());
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
39public 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)
34public 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;
231 references to Bounds
System.Windows.Forms (43)
System\Windows\Forms\Accessibility\AccessibleObject.cs (6)
546if (child is not null && child.Bounds.Contains(x, y)) 562return Bounds.Contains(x, y) ? this : null; 616UIA_PROPERTY_ID.UIA_BoundingRectanglePropertyId => UiaTextProvider.BoundingRectangleAsVariant(Bounds), 718internal virtual Rectangle BoundingRectangle => Bounds; 1697Rectangle bounds = Bounds; 1710Rectangle 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)
1789if (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)
325Rectangle rowRect = parentAccObject.Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
61Rectangle 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)
72return 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) == true)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
63Rectangle 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)
62RECT 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)
3547Rectangle 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.Design.Tests (1)
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
44var accessibleObject = CreateAccessibleObject(mock => mock.Setup(a => a.Bounds).Returns(expectedBounds));
System.Windows.Forms.Tests (180)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (33)
23Assert.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) 618Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 636Assert.Equal(0, accessibleObject.Bounds.Width); 637Assert.Equal(0, accessibleObject.Bounds.Height); 658Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 684Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 702Assert.Equal(0, accessibleObject.Bounds.Width); 703Assert.Equal(0, accessibleObject.Bounds.Height); 721Assert.Equal(0, accessibleObject.Bounds.Width); 722Assert.Equal(0, accessibleObject.Bounds.Height); 740Assert.Equal(0, accessibleObject.Bounds.Width); 741Assert.Equal(0, accessibleObject.Bounds.Height); 762Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 783Assert.Equal(accessibleObject.Bounds, accessibleObject.Bounds); 804Assert.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) 1079mockAccessibleObject.Verify(a => a.Bounds, Times.Once()); 1089.Setup(a => a.Bounds) 1094.Setup(a => a.Bounds) 1118mockAccessibleObjectChild1.Verify(a => a.Bounds, Times.Exactly(child1CallCount)); 1119mockAccessibleObjectChild2.Verify(a => a.Bounds, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (2)
29int listBoxHeight = checkedListBox.AccessibilityObject.Bounds.Height; 35sumItemsHeight += item.Bounds.Height;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
329if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds)) 346if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds)) 407Rectangle actual = itemAccessibleObject.Bounds; 469Rectangle actual = itemAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
67Assert.True(accessibleObject.Bounds.X >= 0); 68Assert.True(accessibleObject.Bounds.Y >= 0); 69Assert.Equal(0, accessibleObject.Bounds.Width); 70Assert.Equal(0, accessibleObject.Bounds.Height); 102Assert.True(accessibleObject.Bounds.X >= 0); 103Assert.True(accessibleObject.Bounds.Y >= 0); 104Assert.Equal(0, accessibleObject.Bounds.Width); 105Assert.Equal(0, accessibleObject.Bounds.Height);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (6)
152int actualWidth = accessibleObject.Bounds.Width; 156int actualHeight = accessibleObject.Bounds.Height; 160Rectangle actualBounds = accessibleObject.Bounds; 175int actualWidth = accessibleObject.Bounds.Width; 178int actualHeight = accessibleObject.Bounds.Height; 181Rectangle actualBounds = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
118Assert.Equal(expected, accessibleObject.Bounds); 131Assert.Throws<InvalidOperationException>(() => accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (2)
52Assert.Equal(expected, accessibleObject.Bounds); 65Assert.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)
38Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 58Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
46Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 57Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
46Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
172itemAccessibleObject.Bounds.Should().Be(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (4)
1225Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).Bounds.Location)); 1226Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).Bounds.Location)); 1227Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).Bounds.Location)); 1228Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).Bounds.Location));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
299int actualWidth = group1AccObj.Bounds.Width; 303int actualHeight = group1AccObj.Bounds.Height; 307Rectangle actualBounds = group1AccObj.Bounds; 337int actualWidth = groupAccObj.Bounds.Width; 341int actualHeight = groupAccObj.Bounds.Height; 345Rectangle actualBounds = groupAccObj.Bounds; 1198Rectangle listViewBounds = listView.AccessibilityObject.Bounds;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (25)
200Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 201Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 202Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 204Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 205Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 206Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 230Assert.NotEqual(Rectangle.Empty, subItemAccObj1.Bounds); 231Assert.NotEqual(Rectangle.Empty, subItemAccObj2.Bounds); 232Assert.NotEqual(Rectangle.Empty, subItemAccObj3.Bounds); 234Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 235Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 236Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 260Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 261Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 262Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 264Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 265Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 266Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 657int actualWidth = accessibleObject.Bounds.Width; 661int actualHeight = accessibleObject.Bounds.Height; 665Rectangle actualBounds = accessibleObject.Bounds; 886Assert.Equal(itemAccessibleObject.Bounds, subItemAccessibleObject.Bounds); 908Assert.NotEqual(itemAccessibleObject.Bounds, subItemAccessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
37Rectangle bounds = calendar.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (2)
35Assert.Equal(217, accessibleObject.Bounds.Width); 36Assert.Equal(106, accessibleObject.Bounds.Height);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
53Rectangle actual = cellAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
53Rectangle actual = headerAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
38Rectangle actual = nextButtonAccessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
135Assert.Equal(Rectangle.Empty, panelAccessibleObject.Bounds); 153Assert.Equal(expected, panel.RectangleToClient(panelAccessibleObject.Bounds));
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
105Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 119Assert.Equal(controlClientRectangle, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
26Assert.Equal(ownerControl.ClientSize, accessibilityObject.Bounds.Size); 51Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
134Rectangle gridViewBounds = propertyGrid.RectangleToClient(accessibleObject.Bounds); 245Rectangle gridViewRectangle = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (3)
27Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 39Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 50Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (4)
93Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty); 296Point point = expectedAccessibleObject.Bounds.Location; 314Point point = expectedAccessibleObject.Bounds.Location; 332Point point = expectedAccessibleObject.Bounds.Location;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
30Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
97Assert.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)
27Assert.Equal(ownerControl.Size, accessibilityObject.Bounds.Size); 52Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
21Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 32Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 43Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (4)
21Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 32Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 43Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 154var bounds = accessibleObject.Bounds;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
21Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 32Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
616accessibleObject.Bounds.Should().Be(Rectangle.Empty); 620accessibleObject.Bounds.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
236Point point = accessibleObject.Bounds.Location; 251Point 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)
46Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\DataGridViewCellTests.cs (11)
4811Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.Bounds)); 4812Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4813Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.Bounds)); 4816Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.Bounds)); 4817Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.Bounds)); 4818Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.Bounds)); 4819Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.Bounds)); 4820Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4823Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.Bounds)); 4824Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.Bounds)); 4825Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.Bounds));
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
712Point position = listView.AccessibilityObject.Bounds.Location;
System\Windows\Forms\MonthCalendarTests.cs (3)
4316Rectangle actual = todayLinkAccessibleObject.Bounds; 4330Rectangle bounds = previousButtonAccessibleObject.Bounds; 4355Rectangle actual = rowAccessibleObject.Bounds;
System\Windows\Forms\ScrollBarTests.cs (16)
2941Assert.True(HFirstPageButton(hScrollBar).Bounds.Width > 0); 2942Assert.True(HFirstPageButton(hScrollBar).Bounds.Height > 0); 2955Assert.True(HFirstPageButton(hScrollBar).Bounds.Width == 0 || HFirstPageButton(hScrollBar).Bounds.Height == 0); 2985Assert.True(HLastPageButton(hScrollBar).Bounds.Width > 0); 2986Assert.True(HLastPageButton(hScrollBar).Bounds.Height > 0); 2999Assert.True(HLastPageButton(hScrollBar).Bounds.Width == 0 || HLastPageButton(hScrollBar).Bounds.Height == 0); 3029Assert.True(VFirstPageButton(vScrollBar).Bounds.Width == 0 || VFirstPageButton(vScrollBar).Bounds.Height == 0); 3042Assert.True(VLastPageButton(vScrollBar).Bounds.Width > 0); 3043Assert.True(VLastPageButton(vScrollBar).Bounds.Height > 0); 3056Assert.True(VLastPageButton(vScrollBar).Bounds.Width == 0 || VLastPageButton(vScrollBar).Bounds.Height == 0); 3086Assert.True(VFirstPageButton(vScrollBar).Bounds.Width > 0); 3087Assert.True(VFirstPageButton(vScrollBar).Bounds.Height > 0);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
383Point 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);