5 implementations of GetNativeScreenRectangle
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
12789
Rectangle IKeyboardToolTip.
GetNativeScreenRectangle
() => GetToolNativeScreenRectangle();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
291
Rectangle IKeyboardToolTip.
GetNativeScreenRectangle
() => AccessibilityObject.Bounds;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
20
Rectangle IKeyboardToolTip.
GetNativeScreenRectangle
() => GetNativeRectangle(Index);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3547
Rectangle IKeyboardToolTip.
GetNativeScreenRectangle
() => AccessibilityObject.Bounds;
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
18
Rectangle IKeyboardToolTip.
GetNativeScreenRectangle
() => RectangleToScreen(Bounds);
16 references to GetNativeScreenRectangle
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
12841
neighboringControlsRectangles.Add(((IKeyboardToolTip)control).
GetNativeScreenRectangle
());
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
3565
neighbors.Add(((IKeyboardToolTip)items[previousIndex]).
GetNativeScreenRectangle
());
3571
neighbors.Add(((IKeyboardToolTip)items[nextIndex]).
GetNativeScreenRectangle
());
3585
neighbors.Add(((IKeyboardToolTip)dropDown.OwnerItem).
GetNativeScreenRectangle
());
3592
=> ((IKeyboardToolTip)this).
GetNativeScreenRectangle
().Contains(Control.MousePosition);
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1479
Rectangle toolRectangle = tool.
GetNativeScreenRectangle
();
1595
Rectangle topContainerBounds = ((IKeyboardToolTip?)TopLevelControl)?.
GetNativeScreenRectangle
() ?? Rectangle.Empty;
System.Windows.Forms.Tests (9)
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (8)
114
Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().IsEmpty);
133
Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().IsEmpty);
154
Assert.Equal(expectedWidth, ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().Width);
171
int actualWidth = ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().Width;
173
Assert.True(columnWidth > ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().Width);
189
Assert.Equal(expectedWidth, ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().Width);
205
Assert.Equal(expectedWidth, ((IKeyboardToolTip)listViewItem).
GetNativeScreenRectangle
().Width);
827
return ((IKeyboardToolTip)listView).
GetNativeScreenRectangle
();
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
113
Assert.Equal(expectedBounds, ((IKeyboardToolTip)treeNode).
GetNativeScreenRectangle
());