334 references to Bottom
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2881arcrect.Y = baserect.Bottom - d; 2923arcrect.Y = baserect.Bottom - d;
System.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
29Region = PInvokeCore.CreateRectRgn(rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
System.Windows.Forms (234)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
193Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1);
System\Windows\Forms\Control.cs (2)
8169clientRectangle.Right, clientRectangle.Bottom); 8170e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Bottom,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
301Point p3 = new(r.Left, r.Bottom - 1); // Bottom inner left 302Point p4 = new(r.Right - 1, r.Bottom - 1); // Inner bottom right
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (6)
578int textBottom = Math.Min(layout.TextBounds.Bottom, layout.Field.Bottom); 645bottom = Math.Min(layout.TextBounds.Bottom, maxBounds.Bottom); 652bottom = Math.Min(layout.TextBounds.Bottom, layout.Field.Bottom);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (8)
95g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Left + 1, r.Bottom - 2); 98g.DrawLine(windowFrame, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 99g.DrawLine(windowFrame, r.Right - 1, r.Top, r.Right - 1, r.Bottom); 103g.DrawLine(highlight, r.Left, r.Top, r.Left, r.Bottom); 106g.DrawLine(buttonShadow, r.Left + 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2); 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); 220hdc.DrawLine(high, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 222hdc.DrawLine(shadow, r.Left, r.Top, r.Left, r.Bottom); 225hdc.DrawLine(face, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 1); 226hdc.DrawLine(face, r.Left + 1, r.Bottom - 2, r.Right - 1, r.Bottom - 2);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
254Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (32)
3030r.Y = Math.Min(inside.Bottom - 3, r.Y); 6052int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6331int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 7075int height = rowRect.Bottom - columnRect.Bottom; 8596if (mouseY >= rectScrollingArea.Top && mouseY <= rectScrollingArea.Bottom) 8655Debug.Assert(mouseY > rectScrollingArea.Bottom); 8662yOffset = mouseY - rectScrollingArea.Bottom; // yOffset strictly positive 8838else if (mouseY > rectScrollingArea.Bottom) 8847yOffset = mouseY - rectScrollingArea.Bottom; // yOffset strictly positive 8852mouseY = rectScrollingArea.Bottom - 1; 8859mouseY = rectScrollingArea.Bottom - 1; 8867Debug.Assert(mouseY >= rectScrollingArea.Top && mouseY <= rectScrollingArea.Bottom); 9050if (cy > data.Bottom) 9071if (cy > data.Bottom) 9090int displayHeight = cutOverflow && cy + Rows.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom 9091? data.Bottom - cy 9114Debug.Assert(y >= data.Y - 1 && y < data.Bottom, "y must be inside the vertical bounds of the data area."); 9126while (indexTmp != -1 && cy < data.Bottom) 9147while (indexTmp != -1 && cy < data.Bottom) 9404else if (_layout.ColumnHeaders.Bottom - y < RowSizingHotZone) 9410hti._mouseBarOffset = _layout.ColumnHeaders.Bottom - y - 1; 9971bottom = data.Bottom; 9977bottom = data.Bottom; 10001bottom = GetRowDisplayRectangle(i, cutOverflow: true).Bottom; 10018bottom = rowDisplayRect.Bottom; 10309_layout.Data.Bottom, 10326_layout.Data.Bottom, 18843if (pt.Y > rect.Bottom && step > 0) 18846new Size(ClientSize.Width, ClientSize.Height - (pt.Y - rect.Bottom) - step))); 26297while (yRowBottomEdge > _layout.Data.Bottom && rowIndex > firstDisplayedScrollingRow) 26301if (yRowBottomEdge > _layout.Data.Bottom)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
420s_rectThemeMargins.Height = DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.Bottom; 683valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (34)
3197bounds.X, bounds.Bottom - dividerThickness, bounds.Width, dividerThickness); 3213graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3217graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3221graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3226y2 = bounds.Bottom - 3; 3237graphics.DrawLine(penBackColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3243y2 = bounds.Bottom - 1; 3255graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3261y2 = bounds.Bottom - 1; 3273graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3281graphics.DrawLine(penGridColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3285graphics.DrawLine(penControlLightLight, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3289graphics.DrawLine(penControlDark, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3294y2 = bounds.Bottom - 3; 3305graphics.DrawLine(penBackColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3311y2 = bounds.Bottom - 1; 3323graphics.DrawLine(penControlDark, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3329y2 = bounds.Bottom - 1; 3342graphics.DrawLine(penControlLightLight, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3459graphics.DrawLine(penGridColor, bounds.X, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1); 3469graphics.DrawLine(penControlLightLight, bounds.X, bounds.Bottom - 1, x2, bounds.Bottom - 1); 3481graphics.DrawLine(penControlDark, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1); 3507graphics.DrawLine(penBackColor, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1); 3508graphics.DrawLine(penControlDark, x1 + 1, bounds.Bottom - 1, x2 - 1, bounds.Bottom - 1); 3619rectPadding.Y = bounds.Bottom - cellStyle.Padding.Bottom; 3846if (cellClip.Bottom <= cellBounds.Bottom - borderAndPaddingWidths.Height) 3848hEditingPanel -= cellBounds.Bottom - cellClip.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
1066valBounds.Height -= borderWidths.Bottom; 1220checkBoxY = valBounds.Bottom - checkBoxSize.Height; 1314g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
768valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (2)
32Rectangle cornerClip = new(bounds.Left, bounds.Bottom - 2, 2, 2); 35cornerClip = new Rectangle(bounds.Right - 2, bounds.Bottom - 2, 2, 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1916valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
390s_rectThemeMargins.Height = ThemeMargin - rectContent.Bottom; 541bounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
664imageBounds.Y = bounds.Bottom - imageBounds.Height; 748valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
908valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
70int rowRectBottom = rowRect.Bottom; 71if ((dataGridViewRect.Bottom - horizontalScrollBarHeight) < rowRectBottom) 73rowRectBottom = dataGridViewRect.Bottom - _owningDataGridViewRow.DataGridView.BorderWidth - horizontalScrollBarHeight;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
650valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
673valBounds.Height -= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (4)
237valBounds.Height -= borderWidths.Bottom; 378graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 384graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 390graphics.DrawLine(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (3)
423ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 428ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 433ptTextLocation.Y = cellBounds.Bottom - sizeText.Height;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
232clipMiddle.Y = textBounds.Bottom; 233clipMiddle.Height -= (textBounds.Bottom - boxBounds.Top);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
391yLoc = clientRect.Bottom - textRect.Height;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (3)
72if (visibleArea.Bottom < bounds.Bottom) 74bounds.Height = visibleArea.Bottom - bounds.Top;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (4)
114Graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.X, r.Bottom); 117Graphics.DrawLine(SystemPens.ControlDark, r.X + 1, r.Bottom, r.Right, r.Bottom); 118Graphics.DrawLine(SystemPens.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5022rectInvalid.Height += ClientRectangle.Bottom - rectInvalid.Bottom;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
71groupRect.bottom = Math.Min(listViewBounds.Bottom, groupRect.bottom);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
957int yCenter = r.Top + (r.Bottom - r.Top) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
607int propertyGridViewBottom = parent.Bottom - 1; // - 1 is PropertyGridView bottom border
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
372Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
582gripLocation = new Point(SizeGripBounds.Left, SizeGripBounds.Bottom); 586gripLocation = new Point(SizeGripBounds.Right, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (12)
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)) 3788new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1), 3789new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1) 3795new(start, _lastInsertionMarkRect.Bottom - 1), new(start + widthOfBeam - 1, _lastInsertionMarkRect.Bottom - 1), 3796new(start + 1, _lastInsertionMarkRect.Bottom - 2), new(start + widthOfBeam - 2, _lastInsertionMarkRect.Bottom - 2) 4345&& clientBounds.Contains(clientBounds.X, item.Bounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
82_dropDownArrowRect = new Rectangle(0, options.Client.Bottom + _dropDownArrowPadding.Top, _ownerItem.Bounds.Width - 1, s_dropDownArrowSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (7)
468|| !displayRect.Contains(displayRect.X, nextItem.Bounds.Bottom)) 477delta = nextItem.Bounds.Bottom - (displayRect.Y + displayRect.Height); 496if (displayRect.Contains(displayRect.X, Items[index].Bounds.Bottom - delta)) 499delta += (Items[index].Bounds.Bottom - delta) - displayRect.Top; 666&& displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Bottom)) 693&& displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Bottom)) 840maxY = Math.Max(maxY, item.Bounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
362g.DrawLine(foreColorPen, startX, bounds.Top, startX, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
731location = new Point(0, dragRect.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (2)
320int spaceToFree = bounds.Bottom - displayRectangle.Bottom;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
513int spaceToFree = cell.CachedBounds.Bottom - RowManager.DisplayRectangle.Bottom;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (4)
288freedSpace += DisplayRectangle.Bottom - lastCell.Bounds.Bottom; 356int spaceToFree = (lastCell is not null) ? lastCell.Bounds.Bottom - newBounds.Height : 0; 506lastCellMargin.Top = Math.Max(0, locationToDrag.Y - nextCell.Bounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
980endGradient.Y = bounds.Bottom - endGradient.Height; 1512g.DrawLine(leftPen, startX, bounds.Top, startX, bounds.Bottom - 1); 1516g.DrawLine(rightPen, startX, bounds.Top + 1, startX, bounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
988baseRect.Offset(sizeGripBounds.X, sizeGripBounds.Bottom - 12 /*height of pyramid (10px) + 2px padding from bottom*/);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
146insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Bottom, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
358int lastBottom = _displayRectangle.Bottom; 509if ((itemBounds.Bottom > _displayRectangle.Bottom) || (itemBounds.Top < _displayRectangle.Top))
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
262e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 263e.Graphics.DrawLine(SystemPens.InactiveBorder, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 267e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 268e.Graphics.DrawLine(SystemPens.ButtonShadow, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 719g.DrawLine(leftPen, startX, bounds.Top, startX, bounds.Bottom); 723g.DrawLine(rightPen, startX, bounds.Top, startX, bounds.Bottom); 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); 758g.DrawLine(bottomPen, bounds.Left, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
260g.FillRectangle(brush, 0, clientRect.Bottom, Width, Height - clientRect.Height); // bottom border
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
534Rectangle clipBottom = new(bounds.Left, bounds.Bottom - border, bounds.Width, border);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
324Point pt1 = new(clientRect.Left, clientRect.Bottom - 1); 325Point pt2 = new(clientRect.Right, clientRect.Bottom - 1);
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
102if (bounds.Bottom > constrainingBounds.Bottom) 105bounds.Y = constrainingBounds.Bottom - 1 - bounds.Height;
System\Windows\Forms\Layout\DefaultLayout.cs (8)
332bottom = bottom > 0 ? bottom : element.Bounds.Bottom + Math.Abs(bottom); 414Rectangle newElementBounds = new(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.Width, elementSize.Height); 746anchorInfo.Bottom = elementBounds.Bottom; 1137prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom); 1168prefSize.Height = Math.Max(prefSize.Height, anchorInfo is null ? bounds.Bottom : bounds.Bottom + anchorInfo.Bottom); 1173? Math.Max(prefSize.Height, elementSpace.Bottom + anchorDest.Height) 1174: Math.Max(prefSize.Height, anchorDest.Bottom);
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
55value.Y = DisplayRect.Bottom - value.Bottom;
System\Windows\Forms\Layout\LayoutUtils.cs (4)
553Debug.Assert(region1.Bottom == region2.Top, "Adjacency error."); 558Debug.Assert(region2.Bottom == region1.Top, "Adjacency error."); 594int bottom = (specified & AnchorStyles.Bottom) != 0 ? substitutionBounds.Bottom : originalBounds.Bottom;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
447tableBounds.Bottom);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
801_hScrollBar.Top = availableRect.Bottom - _hScrollBar.Height;
System\Windows\Forms\Rendering\ControlPaint.cs (11)
1284graphics.DrawLine(pen, bounds.X + 1, bounds.Bottom - 1, bounds.Right - 2, bounds.Bottom - 1); 1285graphics.DrawLine(pen, bounds.X, bounds.Y + 1, bounds.X, bounds.Bottom - 2); 1286graphics.DrawLine(pen, bounds.Right - 1, bounds.Y + 1, bounds.Right - 1, bounds.Bottom - 2); 1292graphics.DrawLine(pen, midx, bounds.Y, midx, bounds.Bottom - 2); 1310graphics.DrawLine(pen, midx - 1, bounds.Bottom - 3, midx + 1, bounds.Bottom - 3); 1311graphics.DrawLine(pen, midx - 2, bounds.Bottom - 4, midx + 2, bounds.Bottom - 4); 1818PInvoke.Rectangle(desktopDC, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 2327int bottom = bound.Bottom;
System\Windows\Forms\Rendering\DCMapping.cs (1)
50viewportOrg.Y + bounds.Bottom);
System\Windows\Forms\Rendering\TextExtensions.cs (1)
190adjustedBounds.Y = adjustedBounds.Bottom - textHeight;
System\Windows\Forms\ToolTip\ToolTip.cs (9)
1330bottom = (rect.bottom > screen.WorkingArea.Bottom) ? screen.WorkingArea.Bottom : rect.bottom 1483int pointY = (toolRectangle.Top + toolRectangle.Bottom) / 2; 1557new Rectangle(centeredX, toolRectangle.Bottom, width, height), 1944if (moveToLocation.Y + tipSize.Height > screen.WorkingArea.Bottom) 1946moveToLocation.Y = screen.WorkingArea.Bottom - tipSize.Height; 2187if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom) 2212if (wp->y + wp->cy > screen.WorkingArea.Bottom) 2214wp->y = screen.WorkingArea.Bottom - wp->cy;
System.Windows.Forms.Design (62)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
207g.DrawLine(SystemPens.ButtonHighlight, bounds.Left + PushButtonWidth, 4, bounds.Left + PushButtonWidth, bounds.Bottom - 4); 208g.DrawLine(SystemPens.ButtonHighlight, bounds.Left + PushButtonWidth + 1, 4, bounds.Left + PushButtonWidth + 1, bounds.Bottom - 4); 214g.DrawLine(SystemPens.ButtonHighlight, bounds.Right - PushButtonWidth, 4, bounds.Right - PushButtonWidth, bounds.Bottom - 4); 215g.DrawLine(SystemPens.ButtonHighlight, bounds.Right - PushButtonWidth - 1, 4, bounds.Right - PushButtonWidth - 1, bounds.Bottom - 4);
System\ComponentModel\Design\DesignerActionPanel.cs (7)
256if (rectangleAnchor.Bottom + sizePanel.Height > rectScreen.Bottom) 271if (rectangleAnchor.Bottom + sizePanel.Height > rectScreen.Bottom) 295y = rectangleAnchor.Bottom + EDGE_SPACE; 319y = rectangleAnchor.Bottom - sizePanel.Height; 515if (yPos + lineHeight > originalClip.Bottom)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
353if (rectScreen.Bottom < (dropDownSize.Height + editorLocation.Y + editorBounds.Height)) 377if (rectScreen.Bottom < (dropDownSize.Height + editorLocation.Y + editorBounds.Height))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (9)
715int maxRange = directionOffset.Y < 0 ? currentBounds.Bottom : int.MaxValue; 828coord += (Math.Min(dragRect.Bottom, lines[i].OriginalBounds.Bottom) - coord) / 2; 856lines[i].Y1 = Math.Min(dragRect.Bottom, lines[i].OriginalBounds.Bottom); 867lines[i].Y1 = dragRect.Bottom; 868lines[i].Y2 = lines[i].OriginalBounds.Bottom; 945snapLine.Offset, Math.Max(dragBounds.Bottom + (_snapPointY != INVALID_VALUE ? _snapPointY : 0), bounds.Bottom))
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (3)
43bounds = new Rectangle(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize); 48bounds = new Rectangle(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize); 70bounds = new Rectangle(controlBounds.X + (controlBounds.Width / 2) - (DesignerUtils.s_handleSize / 2), controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
123int yDelta = controlBounds.Bottom % _parentGridSize.Height; 672pixelHeight = mouseLoc.Y - controlBounds.Bottom; 704bounds.Y = Math.Min(baseBounds.Bottom - minHeight, baseBounds.Y - yOffset);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (5)
152else if (line.Y1 == _lastRectangle.Bottom) 156offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 178offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 238new(SnapLineType.Bottom, r.Bottom), 241new(SnapLineType.Horizontal, r.Bottom + 3, SnapLine.MarginBottom, SnapLinePriority.Always),
System\Windows\Forms\Design\DesignerUtils.cs (5)
255PInvoke.RoundRect(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom, 2, 2); 270PInvoke.Rectangle(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 294PInvoke.Rectangle(hDC, bounds.Left, bounds.Top + s_lockedHandleLowerOffset, bounds.Right, bounds.Bottom); 463SelectionBorderGlyphType.Bottom => new Rectangle(originalBounds.Left - borderSize, originalBounds.Bottom, originalBounds.Width + 2 * borderSize, borderSize), 553return face.Bottom - fontHeight + fontAscent;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (10)
263if (marginBounds.Bottom > currentMaxBottomRight) 265currentMaxBottomRight = marginBounds.Bottom; 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)); 405ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom)); 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)); 421ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom));
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
445PInvoke.Rectangle(dc, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
322snapLines.Add(new SnapLine(SnapLineType.Horizontal, displayRectangle.Bottom, SnapLine.PaddingBottom, SnapLinePriority.Always)); 850new SnapLine(SnapLineType.Bottom, r.Bottom), 851new SnapLine(SnapLineType.Top, r.Bottom) 922if (centeredLocation.Bottom >= parentHeight ||
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
874graphics.DrawLine(pen, startX, rc.Top, startX, rc.Bottom); 1026if (pos.Y >= bounds.Bottom)
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.Tests (27)
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (6)
256((rect.Y > gridViewRectangle.Y + 1 && rect.Y < gridViewRectangle.Bottom - 1) || 257(rect.Y < gridViewRectangle.Bottom - 1 && rect.Bottom > gridViewRectangle.Y + 1)); // +-1 are borders 269((rect.Y > gridViewRectangle.Y + 1 && rect.Y < gridViewRectangle.Bottom - 1) || 270(rect.Y < gridViewRectangle.Bottom - 1 && rect.Bottom > gridViewRectangle.Y + 1)); // +-1 are borders
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
249Point point = new(accessibleObject.Bounds.X, accessibleObject.Bounds.Bottom - 1);
System\Windows\Forms\ButtonRenderingTests.cs (16)
50new(0, 0), new(0, bounds.Bottom - 1), 53new(0, bounds.Bottom - 1), new(bounds.Right - 1, bounds.Bottom - 1), 56new(bounds.Right - 1, bounds.Bottom - 1), new(bounds.Right - 1, -1), 62new(1, 1), new(1, bounds.Bottom - 2), 65new(1, bounds.Bottom - 2), new(bounds.Right - 2, bounds.Bottom - 2), 68new(bounds.Right - 2, bounds.Bottom - 2), new(bounds.Right - 2, 0), 136new(0, 0), new(0, bounds.Bottom - 1), 139new(0, bounds.Bottom - 1), new(bounds.Right - 1, bounds.Bottom - 1), 142new(bounds.Right - 1, bounds.Bottom - 1), new(bounds.Right - 1, -1), 148new(1, 1), new(1, bounds.Bottom - 2), 151new(1, bounds.Bottom - 2), new(bounds.Right - 2, bounds.Bottom - 2), 154new(bounds.Right - 2, bounds.Bottom - 2), new(bounds.Right - 2, 0),
System\Windows\Forms\CursorTests.cs (1)
269Assert.True(position.Y <= virtualScreen.Bottom);
System\Windows\Forms\ListViewTests.cs (2)
4098Assert.True((rect2.X >= rect1.Right && rect2.Y == rect1.Y) || (rect2.X == rect1.X && rect2.Y >= rect1.Bottom)); 4132Assert.True((rect2.X >= rect1.Right && rect2.Y == rect1.Y) || (rect2.X == rect1.X && rect2.Y >= rect1.Bottom));
System\Windows\Forms\ToolStripDropDownTests.cs (1)
4893items[i].SetBounds(0, items[i - 1].Bounds.Bottom + 1, items[i].Bounds.Width, items[i].Bounds.Height);
System.Windows.Forms.UI.IntegrationTests (6)
ButtonTests.cs (4)
144Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 200Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 216Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.DisplayRectangle.Height - button.DisplayRectangle.Bottom);
DragDropTests.cs (1)
919((MousePosition.Y - _screenOffset.Y) > form.DesktopBounds.Bottom))
Infra\ControlTestBase.cs (1)
397return new Point(GetMiddle(cell.Right, cell.Left), GetMiddle(cell.Top, cell.Bottom));