50 references to RectangleToScreen
System.Windows.Forms (25)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
378
public override Rectangle RectangleToScreen(Rectangle rect) => _owningComboBox.
RectangleToScreen
(rect);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
3383
Cursor.Clip =
RectangleToScreen
(cursorClip);
5680
ControlPaint.FillReversibleRectangle(
RectangleToScreen
(rectInsertionBar), Color.White);
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
38
return _ownerDataGridView.
RectangleToScreen
(rect);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
328
Rectangle columnRect = _owner.DataGridView.
RectangleToScreen
(
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
54
Rectangle rowRect = _owningDataGridViewRow.DataGridView.
RectangleToScreen
(_owningDataGridViewRow.DataGridView.GetRowDisplayRectangle(_owningDataGridViewRow.Index, cutOverflow: false));
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
33
return Owner.DataGridView.
RectangleToScreen
(cellRect);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1435
Rectangle rectInScreen =
RectangleToScreen
(new Rectangle(0, 0, Width, Height));
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
54
return _owningLinkLabel.
RectangleToScreen
(rect);
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
69
bounds = _owningListBox.
RectangleToScreen
(bounds);
70
Rectangle visibleArea = _owningListBox.
RectangleToScreen
(_owningListBox.ClientRectangle);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
26
return _owningItem.ListView!.
RectangleToScreen
(imageRectangle);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
277
return success ? owner.
RectangleToScreen
(gridInfo.rc) : default;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1968
Rectangle rc = targetControl.
RectangleToScreen
(rcFrame);
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
176
neighbors.Add(tabControl.
RectangleToScreen
(tabControl.GetTabRect(currentIndex - 1)));
182
neighbors.Add(tabControl.
RectangleToScreen
(tabControl.GetTabRect(currentIndex + 1)));
198
if (tabControl.
RectangleToScreen
(tabControl.GetTabRect(i)).Contains(MousePosition))
524
return tabControl.
RectangleToScreen
(rect);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
143
public override Rectangle RectangleToScreen(Rectangle rect) => Owner is not null ? Owner.
RectangleToScreen
(rect) : Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
61
return TreeView?.
RectangleToScreen
(bounds) ?? Rectangle.Empty;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
46
return owner.ParentInternal?.
RectangleToScreen
(bounds) ?? Rectangle.Empty;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
35
? _control.ParentInternal.
RectangleToScreen
(_controlItem.GetIconBounds(_provider.Region.Size))
System\Windows\Forms\Form.AccessibleObject.cs (2)
22
? owner.
RectangleToScreen
(owner.ClientRectangle)
28
: owner.Parent?.
RectangleToScreen
(owner.Bounds) ?? owner.Bounds;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
868
bounds = RectangleToClient(activeControl.ParentInternal.
RectangleToScreen
(bounds));
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
347
Rectangle rectScreen = Screen.FromRectangle(ActionPanel.
RectangleToScreen
(editorBounds)).WorkingArea;
371
Rectangle rectScreen = Screen.FromRectangle(ActionPanel.
RectangleToScreen
(editorBounds)).WorkingArea;
System\Windows\Forms\Design\ComponentTray.cs (3)
621
return
RectangleToScreen
(ClientRectangle);
1209
_mouseDragWorkspace =
RectangleToScreen
(_mouseDragWorkspace);
1267
Cursor.Clip =
RectangleToScreen
(ClientRectangle);
System\Windows\Forms\Design\ControlDesigner.cs (2)
690
Rectangle parentRect = parent.
RectangleToScreen
(parent.ClientRectangle);
691
Rectangle controlRect = Control.
RectangleToScreen
(Control.ClientRectangle);
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
48
_controlRect = control.
RectangleToScreen
(control.ClientRectangle);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1966
_mouseDragOffset = Control.
RectangleToScreen
(_mouseDragOffset);
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
71
Rectangle containerRect = containerControl.
RectangleToScreen
(containerControl.ClientRectangle);
System\Windows\Forms\Design\TabOrder.cs (2)
320
screenRectangle = parent.
RectangleToScreen
(control.Bounds);
347
convertedBounds = parent.
RectangleToScreen
(convertedBounds);
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
281
Rectangle expected = panel1.
RectangleToScreen
(panel1.ClientRectangle);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
87
Rectangle controlBounds = panel.
RectangleToScreen
(control.Bounds);
113
Rectangle controlClientRectangle = control.
RectangleToScreen
(control.ClientRectangle);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
253
rect = propertyGridView.
RectangleToScreen
(rect);
266
rect = propertyGridView.
RectangleToScreen
(rect);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
553
Rectangle expected = tabPage.
RectangleToScreen
(tabPage.ClientRectangle);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
108
Rectangle expected = textBoxBase.
RectangleToScreen
(textBoxBase.ClientRectangle);
System\Windows\Forms\TabPageTests.cs (2)
4993
=> tabControl.
RectangleToScreen
(tabControl.GetTabRect(index));
5034
Rectangle expected = tabControl.
RectangleToScreen
(tabControl.GetTabRect(0));
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
440
return treeView.
RectangleToScreen
(treeNode.Bounds);
System.Windows.Forms.UI.IntegrationTests (3)
ListViewTests.cs (3)
32
Point itemCenter = GetCenter(listView.
RectangleToScreen
(listView.Items[0].Bounds));
494
Point listViewCenter = GetCenter(listView.
RectangleToScreen
(listView.Items[0].SubItems[1].Bounds));
500
listViewCenter = GetCenter(listView.
RectangleToScreen
(listView.Items[2].SubItems[1].Bounds));