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