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