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