258 references to Top
System.Windows.Forms (177)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
1061top = BoundingRectangle.Top,
System\Windows\Forms\Control.cs (3)
8168e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Top, 8171clientRectangle.Right, clientRectangle.Top); 8232rectangle.Top + Top,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
299Point p1 = new(r.Right - 1, r.Top); // Upper inner right 300Point p2 = new(r.Left, r.Top); // Upper left
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (8)
94g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Right - 2, r.Top + 1); 95g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Left + 1, r.Bottom - 2); 99g.DrawLine(windowFrame, r.Right - 1, r.Top, r.Right - 1, r.Bottom); 102g.DrawLine(highlight, r.Left, r.Top, r.Right, r.Top); 103g.DrawLine(highlight, r.Left, r.Top, r.Left, r.Bottom); 107g.DrawLine(buttonShadow, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 2);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (7)
219hdc.DrawLine(high, r.Right - 1, r.Top, r.Right - 1, r.Bottom); 222hdc.DrawLine(shadow, r.Left, r.Top, r.Left, r.Bottom); 223hdc.DrawLine(shadow, r.Left, r.Top, r.Right - 1, r.Top); 225hdc.DrawLine(face, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 1); 268new Point(layout.CheckBounds.Left, layout.CheckBounds.Top), 283new Point(layout.CheckBounds.Left, layout.CheckBounds.Top),
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
209new Point(check.Left, check.Top),
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
167Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
4929rowY = rowIndex > -1 ? GetRowYFromIndex(rowIndex) : _layout.ColumnHeaders.Top; 5638Rectangle rectInsertionBar = new(0, _layout.ColumnHeaders.Top, InsertionBarWidth, _layout.ColumnHeaders.Height); 8596if (mouseY >= rectScrollingArea.Top && mouseY <= rectScrollingArea.Bottom) 8636if (mouseY < rectScrollingArea.Top) 8645yOffset = mouseY - rectScrollingArea.Top; // yOffset strictly negative 8691hti = HitTest(mouseX, rectScrollingArea.Top); 8711hti = HitTest(mouseX, rectScrollingArea.Top); 8742mouseY = rectScrollingArea.Top + 1; 8746hti = HitTest(mouseX, rectScrollingArea.Top); 8796mouseY = rectScrollingArea.Top + 1; 8817if (mouseY < rectScrollingArea.Top) 8826yOffset = mouseY - rectScrollingArea.Top; // yOffset strictly negative 8831if (mouseY < _layout.Data.Top) 8833mouseY = _layout.Data.Top + 1; 8867Debug.Assert(mouseY >= rectScrollingArea.Top && mouseY <= rectScrollingArea.Bottom); 9314hti._rowStart = _layout.TopLeftHeader.Top; 9327else if (_layout.TopLeftHeader.Top + _layout.TopLeftHeader.Height - y < RowSizingHotZone) 9333hti._mouseBarOffset = _layout.TopLeftHeader.Top + _layout.TopLeftHeader.Height - y - 1; 9353hti._rowStart = _layout.ColumnHeaders.Top; 9954top = GetRowDisplayRectangle(DisplayedBandsInfo.FirstDisplayedScrollingRow, cutOverflow: true).Top; 9959top = rowDisplayRect.Top; 19284Debug.Assert(bounds.Top == 0); 22032if (_dataGridViewOper[OperationTrackKeyboardColResize] && _resizeClipRectangle.Contains(x, _resizeClipRectangle.Top))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
295int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
651int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 1224checkBoxY = valBounds.Top + (valBounds.Height - checkBoxSize.Height) / 2; 1228checkBoxY = valBounds.Top; 1313g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right - 1, checkBounds.Top); 1314g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
499int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 950valBounds.Top + 959valBounds.Top + 998valBounds.Top + (valBounds.Height - s_sortGlyphHeight) / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (9)
1178int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 1958g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 1976g.FillRectangle(brush!, valBounds.Left + 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.Height - 2); 1987g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2015valBounds.Top, 2023valBounds.Top + 1, 2032valBounds.Top + 2, 2155Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2179dropRect.Top + (dropRect.Height + s_nonXPTriangleHeight) / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
411int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
552int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
76if ((dataGridViewRect.Top + columnHeadersHeight) > rowRect.Top) 82rowRect.Height = rowRectBottom - rowRect.Top;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
531int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
404int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
147int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (10)
233clipMiddle.Height -= (textBounds.Bottom - boxBounds.Top); 253g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.Height - 1); 254g.DrawLine(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.Height - 2); 261g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Width - 1, bounds.Top + 1); 262g.DrawLine(dark, bounds.Left, bounds.Top, bounds.Width - 2, bounds.Top); 265g.DrawLine(light, bounds.Width - 1, bounds.Top, bounds.Width - 1, bounds.Height - 1); 266g.DrawLine(dark, bounds.Width - 2, bounds.Top, bounds.Width - 2, bounds.Height - 2); 311int boxTop = bounds.Top;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
74bounds.Height = visibleArea.Bottom - bounds.Top;
System\Windows\Forms\Controls\ListView\ListView.cs (8)
3244y = Math.Max(itemBounds.Top, iconBounds.Top) - 1; 3248y = Math.Max(itemBounds.Top, iconBounds.Top) + 1; 3252y = Math.Max(itemBounds.Top, iconBounds.Top); 3256y = Math.Max(itemBounds.Top, iconBounds.Top);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
70groupRect.top = Math.Max(listViewBounds.Top, groupRect.top);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
957int yCenter = r.Top + (r.Bottom - r.Top) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
447newBounds.Y = _dragBaseRect.Top + delta;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
2151if (!down && otherItem.Bounds.Bottom > selectedItem.Bounds.Top) 2156else if (down && otherItem.Bounds.Top < selectedItem.Bounds.Bottom) 2164Point otherItemMidLocation = new(otherItem.Bounds.X + otherItem.Width / 2, (down) ? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 2214if ((!down && tanWinner.Bounds.Bottom <= hypotenuseWinner.Bounds.Top) 2215|| (down && tanWinner.Bounds.Top > hypotenuseWinner.Bounds.Bottom)) 4177gripRectangle.Y = Math.Max(0, displayRect.Top - Grip.Margin.Top); 4194gripRectangle.Y = displayRect.Top - (Grip.GripThickness + Grip.Margin.Bottom); 4344bool verticallyContained = clientBounds.Contains(clientBounds.X, item.Bounds.Top)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
142Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (23)
467if (!displayRect.Contains(displayRect.X, nextItem.Bounds.Top) 471if (displayRect.Y > nextItem.Bounds.Top) 473delta = nextItem.Bounds.Top - displayRect.Y; 483if ((Items[index].Visible && displayRect.Contains(displayRect.X, Items[index].Bounds.Top - delta)) 499delta += (Items[index].Bounds.Bottom - delta) - displayRect.Top; 619int delta = Items[0].Bounds.Top - DisplayRectangle.Top; 652int alreadyScrolled = displayRectangle.Top - Items[0].Bounds.Top; 665if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Top) 675deltaToScroll += Items[i + 1].Bounds.Top - Items[i].Bounds.Top; 692if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Top) 702deltaToScroll -= Items[i].Bounds.Top - Items[i - 1].Bounds.Top; 713_scrollAmount = DisplayRectangle.Top - Items[0].Bounds.Top; 751delta = itemTop.Bounds.Top - itemBottom.Bounds.Top; 764delta = itemBottom.Bounds.Top - itemTop.Bounds.Top; 834if (_indexOfFirstDisplayedItem == -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top)) 839minY = Math.Min(minY, item.Bounds.Top);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
362g.DrawLine(foreColorPen, startX, bounds.Top, startX, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
1312g.FillRectangle(brush, overflowBoundsFill.Width - 3, overflowBoundsFill.Top - 1, 1, 1); 1313g.FillRectangle(brush, overflowBoundsFill.Width - 2, overflowBoundsFill.Top - 2, 1, 1); 1331g.FillRectangle(brush, overflowBoundsFill.X, overflowBoundsFill.Top - 1, 1, 1); 1512g.DrawLine(leftPen, startX, bounds.Top, startX, bounds.Bottom - 1); 1516g.DrawLine(rightPen, startX, bounds.Top + 1, startX, bounds.Bottom); 1648Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
618Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
316_splitterBounds = new Rectangle(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, _splitterWidth, splitButtonButtonBounds.Height); 322_splitterBounds = new Rectangle(dropDownButtonBounds.Right, dropDownButtonBounds.Top, _splitterWidth, dropDownButtonBounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
143insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Top, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth); 226return (check.Y <= (orig.Top + heightUnit)) ? RelativeLocation.Above : RelativeLocation.Below;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
288int y = _displayRectangle.Top; 359int lastTop = _displayRectangle.Top; 509if ((itemBounds.Bottom > _displayRectangle.Bottom) || (itemBounds.Top < _displayRectangle.Top))
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (6)
719g.DrawLine(leftPen, startX, bounds.Top, startX, bounds.Bottom); 723g.DrawLine(rightPen, startX, bounds.Top, startX, bounds.Bottom); 755g.DrawLine(topPen, bounds.Left, bounds.Top, bounds.Right - 1, bounds.Top); 756g.DrawLine(leftPen, bounds.Left, bounds.Top, bounds.Left, bounds.Bottom - 1); 757g.DrawLine(rightPen, bounds.Right - 1, bounds.Top, bounds.Right - 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
258g.FillRectangle(brush, 0, 0, Width, clientRect.Top); // top border
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2937bounds.Top,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (4)
531Rectangle clipLeft = new(bounds.Left, bounds.Top, border, bounds.Height); 532Rectangle clipTop = new(bounds.Left, bounds.Top, bounds.Width, border); 533Rectangle clipRight = new(bounds.Right - border, bounds.Top, border, bounds.Height); 864clientArea.Top - borderFixup,
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
107else if (bounds.Top < constrainingBounds.Top) 110bounds.Y = constrainingBounds.Top;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
324top = Math.Max(Math.Abs(top), Math.Abs(cachedBounds.Top)); 331top = top > 0 ? top : element.Bounds.Top; 744anchorInfo.Top = elementBounds.Top;
System\Windows\Forms\Layout\LayoutUtils.cs (4)
553Debug.Assert(region1.Bottom == region2.Top, "Adjacency error."); 558Debug.Assert(region2.Bottom == region1.Top, "Adjacency error."); 592int top = (specified & AnchorStyles.Top) != 0 ? substitutionBounds.Top : originalBounds.Top;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1280graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.Width - 2, bounds.Height - 2);
System\Windows\Forms\Rendering\DCMapping.cs (2)
48viewportOrg.Y + bounds.Top, 61viewportOrg.Y + bounds.Top,
System\Windows\Forms\Rendering\TextExtensions.cs (1)
185adjustedBounds.Y = adjustedBounds.Top + adjustedBounds.Height / 2 - textHeight / 2;
System\Windows\Forms\ToolTip\ToolTip.cs (6)
1328top = (rect.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top : rect.top, 1483int pointY = (toolRectangle.Top + toolRectangle.Bottom) / 2; 1551int centeredY = toolRectangle.Top + toolRectangle.Height / 2 - height / 2; // tooltip will be aligned with tool horizontally 1555new Rectangle(centeredX, toolRectangle.Top - height, width, height), 1630return new Point(optimalLocation.Left, optimalLocation.Top);
System.Windows.Forms.Design (72)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
246Convert.ToInt32(dropDownRect.Top + dropDownRect.Height / 2));
System\ComponentModel\Design\DesignerActionPanel.cs (11)
259if (rectangleAnchor.Top - sizePanel.Height < rectScreen.Top) 268if (rectangleAnchor.Top - sizePanel.Height < rectScreen.Top) 301y = rectangleAnchor.Top - sizePanel.Height - EDGE_SPACE; 307y = rectScreen.Top; 313y = rectangleAnchor.Top; 325y = rectScreen.Top; 331y = rectangleAnchor.Top; 337y = rectangleAnchor.Top - sizePanel.Height - EDGE_SPACE; 495while ((index < (_lineYPositions.Count - 1)) && (_lineYPositions[index + 1] <= originalClip.Top))
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (2)
156topRight.Y = newRect.Top; 210pe.Graphics.DrawImage(image, _bounds.Left, _bounds.Top);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (16)
205int yOffset = controlBounds.Top; 827int coord = Math.Max(dragRect.Top, lines[i].OriginalBounds.Top); 857lines[i].Y2 = Math.Max(dragRect.Top, lines[i].OriginalBounds.Top); 861lines[i].Y1 = lines[i].OriginalBounds.Top; 862lines[i].Y2 = dragRect.Top; 944line = new Line(snapLine.Offset, Math.Min(dragBounds.Top + (_snapPointY != INVALID_VALUE ? _snapPointY : 0), bounds.Top), 1004if (bounds.Top < dragBounds.Top) 1006if (bounds.Top + bounds.Height < dragBounds.Top) 1011else if (dragBounds.Top + dragBounds.Height < bounds.Top) 1144Rectangle tempDragRect = new(dragBounds.Left + snapPoint.X, dragBounds.Top + snapPoint.Y, dragBounds.Width, dragBounds.Height);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
135int yDelta = controlBounds.Top % _parentGridSize.Height;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (7)
146if (line.Y1 == _lastRectangle.Top) 150offset.Y = _lastRectangle.Top - mouseLoc.Y; 168if (Math.Max(line.Y1, line.Y2) <= _lastRectangle.Top) 172offset.Y = _lastRectangle.Top - mouseLoc.Y; 221offset.Y = _lastRectangle.Top - mouseLoc.Y; 239new(SnapLineType.Top, r.Top), 240new(SnapLineType.Horizontal, r.Top - 4, SnapLine.MarginTop, SnapLinePriority.Always),
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
229pe.Graphics.DrawImage(_image, _glyphBounds.Left, _glyphBounds.Top);
System\Windows\Forms\Design\DesignerUtils.cs (10)
255PInvoke.RoundRect(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom, 2, 2); 270PInvoke.Rectangle(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 287bounds.Top, bounds.Left + s_lockedHandleUpperOffset + s_lockedHandleSizeUpper, 288bounds.Top + s_lockedHandleSizeUpper, 294PInvoke.Rectangle(hDC, bounds.Left, bounds.Top + s_lockedHandleLowerOffset, bounds.Right, bounds.Bottom); 462SelectionBorderGlyphType.Top => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, originalBounds.Width + 2 * borderSize, borderSize), 464SelectionBorderGlyphType.Left => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize), 465SelectionBorderGlyphType.Right => new Rectangle(originalBounds.Right, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize), 545return face.Top + fontAscent; 549return face.Top + (face.Height / 2) - (fontHeight / 2) + fontAscent;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (11)
154bounds.Top - margin.Top, 258if (marginBounds.Top < currentMinTopLeft) 260currentMinTopLeft = marginBounds.Top; 396ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 399ReDrawIBar(new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom)); 402ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top)); 415ReDrawIBar(new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom)); 418ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 424ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
321snapLines.Add(new SnapLine(SnapLineType.Horizontal, displayRectangle.Top, SnapLine.PaddingTop, SnapLinePriority.Always));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
874graphics.DrawLine(pen, startX, rc.Top, startX, rc.Bottom); 880int startY = rc.Top; 1109Rectangle gBounds = new(startLoc - halfSize, checkBounds.Top, DesignerUtils.s_resizeGlyphSize, checkBounds.Height);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
579if (parentBounds.Contains(r.Left, r.Top))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
1898_hotRegion = new Rectangle(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1902_hotRegion = new Rectangle(bounds.Right - s_templateHotRegionWidth - 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1919_hotRegion = new Rectangle(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1923_hotRegion = new Rectangle(bounds.Right - s_templateHotRegionWidth - 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1979g.DrawLine(p, buttonBounds.Left, buttonBounds.Top + 1, buttonBounds.Left, buttonBounds.Bottom - 1); 1988Rectangle fillRect = new(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom); 2007Rectangle fillRect = new(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
14DrawRectangle(hdc.HDC, rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Bottom, hpen); 132DrawAndFillEllipse(hdc.HDC, pen, brush, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
System.Windows.Forms.UI.IntegrationTests (7)
ButtonTests.cs (2)
120Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2); 170Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2);
DragDropTests.cs (3)
200Y = (startCoordinates.Y - vscreen.Top) * DesktopNormalizedMax / vscreen.Height + DesktopNormalizedMax / (vscreen.Height * 2) 205Y = (endCoordinates.Y - vscreen.Top) * DesktopNormalizedMax / vscreen.Height + DesktopNormalizedMax / (vscreen.Height * 2) 918((MousePosition.Y - _screenOffset.Y) < form.DesktopBounds.Top) ||
Infra\ControlTestBase.cs (1)
397return new Point(GetMiddle(cell.Right, cell.Left), GetMiddle(cell.Top, cell.Bottom));
ListBoxAccesibleObjectTests.cs (1)
55Point testPoint = listBox.PointToScreen(new Point(itemBounds.Left + 1, itemBounds.Top + 1));