264 references to Left
PresentationUI (8)
MS\Internal\Documents\DialogDivider.cs (1)
75
ClientRectangle.
Left
,
MS\Internal\Documents\SignatureSummaryDialog.cs (7)
647
iconXOffset = bounds.
Left
+ CellPadding.Left;
648
statusXOffset = bounds.
Left
+ IconWidth + CellPadding.Left;
649
intentXOffset = bounds.
Left
+ IconWidth + SummaryNameTextWidth + CellPadding.Left;
691
signByXOffset = bounds.
Left
+ CellPadding.Left + CellPadding.Right;
692
localeXOffset = bounds.
Left
+ CellPadding.Left + CellPadding.Right + SignByTextWidth;
696
signByXOffset = bounds.
Left
+ IconWidth + SummaryNameTextWidth + IntentTextWidth + SignByTextWidth + CellPadding.Left;
697
localeXOffset = bounds.
Left
+ IconWidth + SummaryNameTextWidth + IntentTextWidth + CellPadding.Left;
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2883
arcrect.X = baserect.
Left
;
2925
arcrect.X = baserect.
Left
;
System.Windows.Forms (173)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
1060
left = BoundingRectangle.
Left
,
System\Windows\Forms\Control.cs (3)
8168
e.Graphics.DrawLine(pen, clientRectangle.
Left
, clientRectangle.Top,
8170
e.Graphics.DrawLine(pen, clientRectangle.
Left
, clientRectangle.Bottom,
8231
rectangle.
Left
+ Left,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
300
Point p2 = new(r.
Left
, r.Top); // Upper left
301
Point p3 = new(r.
Left
, r.Bottom - 1); // Bottom inner 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);
98
g.DrawLine(windowFrame, r.
Left
, r.Bottom - 1, r.Right, r.Bottom - 1);
102
g.DrawLine(highlight, r.
Left
, r.Top, r.Right, r.Top);
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);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (7)
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);
223
hdc.DrawLine(shadow, r.
Left
, r.Top, r.Right - 1, r.Top);
226
hdc.DrawLine(face, r.
Left
+ 1, r.Bottom - 2, r.Right - 1, r.Bottom - 2);
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 (33)
2544
int overflowWidth = leftEdge - _mouseBarOffset - clip.
Left
- DataGridViewBand.MaxBandThickness + 1;
2984
r.X = Math.Max(inside.
Left
, r.X);
2995
r.X = Math.Max(r.X, inside.
Left
);
3011
r.X = Math.Max(inside.
Left
, r.X);
4926
columnX = RightToLeftInternal ? _layout.RowHeaders.
Left
- 1 : _layout.RowHeaders.
Left
;
6299
x = Math.Max(e.X + _mouseBarOffset, _layout.Data.
Left
- 1);
8599
hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.
Left
, mouseY);
8628
hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.
Left
, mouseY);
8646
mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.
Left
+ 1;
8650
hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.
Left
, mouseY);
8663
mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.
Left
+ 1;
8688
if (mouseX >= rectScrollingArea.
Left
&& mouseX <= rectScrollingArea.Right)
8719
if ((!RightToLeftInternal && mouseX < rectScrollingArea.
Left
) || (RightToLeftInternal && mouseX > rectScrollingArea.Right))
8739
xOffset = mouseX - rectScrollingArea.
Left
;
8751
Debug.Assert((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.
Left
));
8788
xOffset = rectScrollingArea.
Left
- mouseX;
8870
if ((!RightToLeftInternal && mouseX < rectScrollingArea.
Left
) || (RightToLeftInternal && mouseX > rectScrollingArea.Right))
8890
xOffset = mouseX - rectScrollingArea.
Left
;
8896
if (!RightToLeftInternal && mouseX < _layout.Data.
Left
)
8898
mouseX = _layout.Data.
Left
+ 1;
8908
else if ((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.
Left
))
8941
xOffset = rectScrollingArea.
Left
- mouseX;
8952
mouseX = RightToLeftInternal ? rectScrollingArea.
Left
+ 1 : rectScrollingArea.Right - 1;
8960
mouseX = RightToLeftInternal ? rectScrollingArea.
Left
+ 1 : rectScrollingArea.Right - 1;
8968
Debug.Assert(mouseX >= rectScrollingArea.
Left
&& mouseX <= rectScrollingArea.Right);
9312
hti._colStart = RightToLeftInternal ? _layout.TopLeftHeader.Right - 1 : _layout.TopLeftHeader.
Left
;
9316
|| (RightToLeftInternal && x - _layout.TopLeftHeader.
Left
< ColumnSizingHotZone))
9323
? _layout.TopLeftHeader.
Left
- x - 1
9428
hti._colStart = RightToLeftInternal ? _layout.RowHeaders.Right - 1 : _layout.RowHeaders.
Left
;
9469
|| (RightToLeftInternal && x - _layout.RowHeaders.
Left
< ColumnSizingHotZone))
9476
? _layout.RowHeaders.
Left
- x - 1
19283
Debug.Assert(bounds.
Left
== 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
294
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1020
cellValueBounds.
Left
+ IconMarginWidth :
3603
rectPadding.X = bounds.
Left
+ cellStyle.Padding.Right;
3612
rectPadding.X = bounds.
Left
+ cellStyle.Padding.Left;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
331
int cellRight = columnRect.
Left
+ columnRect.Width;
332
int cellLeft = columnRect.
Left
;
348
if (cellLeft < rowRect.
Left
+ leftToRightRowHeadersWidth)
350
cellLeft = rowRect.
Left
+ leftToRightRowHeadersWidth;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
650
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
1211
checkBoxX = valBounds.
Left
+ (valBounds.Width - checkBoxSize.Width) / 2;
1215
checkBoxX = valBounds.
Left
;
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 (3)
498
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
945
sortGlyphLocation = new Point(valBounds.
Left
-
997
sortGlyphLocation = new Point(valBounds.
Left
+ (valBounds.Width - s_sortGlyphWidth) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
32
Rectangle cornerClip = new(bounds.
Left
, bounds.Bottom - 2, 2, 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (9)
1177
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
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);
2014
DataGridView.RightToLeftInternal ? valBounds.
Left
: valBounds.Right - dropWidth,
2022
DataGridView.RightToLeftInternal ? valBounds.
Left
+ 1 : valBounds.Right - dropWidth - 1,
2031
DataGridView.RightToLeftInternal ? valBounds.
Left
+ 2 : valBounds.Right - dropWidth - 2,
2155
Point middle = new(dropRect.
Left
+ dropRect.Width / 2, dropRect.Top + dropRect.Height / 2);
2178
Point middle = new(dropRect.
Left
+ (dropRect.Width - 1) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
410
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
551
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
530
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
1027
: bounds.
Left
+ RowHeaderIconMarginWidth;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
403
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
146
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (17)
222
clipMiddle.X = clipLeft.
Left
- clipMiddle.Width;
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);
257
g.DrawLine(light, bounds.
Left
, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
258
g.DrawLine(dark, bounds.
Left
, bounds.Height - 2, bounds.Width - 1, 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);
321
bounds.
Left
, boxTop - 1, bounds.
Left
, bounds.Height - 2, // Left
322
bounds.
Left
, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2, // Right
323
bounds.
Left
, boxTop - 1, textBounds.X - 3, boxTop - 1, // Top-left
333
bounds.
Left
+ 1, boxTop, bounds.
Left
+ 1, bounds.Height - 1, // Left
334
bounds.
Left
, bounds.Height - 1, bounds.Width, bounds.Height - 1, // Right
335
bounds.
Left
+ 1, boxTop, textBounds.X - 2, boxTop, // Top-left
System\Windows\Forms\Controls\ListView\ListView.cs (8)
3243
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
);
3247
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
);
3251
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
) - 1;
3255
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
) + 1;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
72
groupRect.left = Math.Max(listViewBounds.
Left
, groupRect.left);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
956
int xCenter = r.
Left
+ (r.Right - r.
Left
) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
458
newBounds.X = _dragBaseRect.
Left
+ delta;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
582
gripLocation = new Point(SizeGripBounds.
Left
, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4193
gripRectangle.X = displayRect.
Left
;
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 (1)
429
_maxItemSize.Width = (_arrowRectangle.Right + _arrowPadding.Right) - _imageMarginBounds.
Left
;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
375
g.DrawLine(foreColorPen, bounds.
Left
, startY, bounds.Right - 1, startY);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (8)
425
g.DrawLine(pen, bounds.
Left
, bounds.Height - 1, bounds.Right, bounds.Height - 1);
1047
e.ImageRectangle.
Left
- 2,
1050
: new Rectangle(e.ImageRectangle.
Left
- 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2);
1270
Point start = new(overflowBoundsFill.
Left
- 1, overflowBoundsFill.Height - 2);
1271
Point end = new(overflowBoundsFill.
Left
, overflowBoundsFill.Height - 2);
1529
g.DrawLine(foreColorPen, bounds.
Left
, startY, bounds.Right - 1, startY);
1535
g.DrawLine(highlightColorPen, bounds.
Left
+ 1, startY, bounds.Right - 1, startY);
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\ToolStripSplitStackDragDropHandler.cs (2)
152
insertionRect = new Rectangle(item.Bounds.
Left
, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1);
213
if ((orig.
Left
+ widthUnit) >= check.X)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (5)
214
int lastLeft = _displayRectangle.
Left
;
235
lastLeft = clientRectangle.
Left
;
430
int x = _displayRectangle.
Left
+ itemMargin.Left;
501
if ((itemBounds.Right > _displayRectangle.Right) || (itemBounds.
Left
< _displayRectangle.
Left
))
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (6)
735
g.DrawLine(foreColorPen, bounds.
Left
, startY, bounds.Right, startY);
739
g.DrawLine(SystemPens.ButtonHighlight, bounds.
Left
, startY, bounds.Right, startY);
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);
758
g.DrawLine(bottomPen, bounds.
Left
, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
259
g.FillRectangle(brush, 0, 0, clientRect.
Left
, Height); // left border
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2936
bounds.
Left
,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
531
Rectangle clipLeft = new(bounds.
Left
, bounds.Top, border, bounds.Height);
532
Rectangle clipTop = new(bounds.
Left
, bounds.Top, bounds.Width, border);
534
Rectangle clipBottom = new(bounds.
Left
, bounds.Bottom - border, bounds.Width, border);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
324
Point pt1 = new(clientRect.
Left
, clientRect.Bottom - 1);
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
93
else if (bounds.
Left
< constrainingBounds.
Left
)
96
bounds.X = constrainingBounds.
Left
;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
306
left = Math.Max(Math.Abs(left), Math.Abs(cachedBounds.
Left
));
313
left = left > 0 ? left : element.Bounds.
Left
;
743
anchorInfo.Left = elementBounds.
Left
;
System\Windows\Forms\Layout\LayoutUtils.cs (4)
543
Debug.Assert(region1.Right == region2.
Left
, "Adjacency error.");
548
Debug.Assert(region2.Right == region1.
Left
, "Adjacency error.");
591
int left = (specified & AnchorStyles.Left) != 0 ? substitutionBounds.
Left
: originalBounds.
Left
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
822
_vScrollBar.Left = availableRect.
Left
;
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)
47
viewportOrg.X + bounds.
Left
,
60
viewportOrg.X + bounds.
Left
,
System\Windows\Forms\ToolTip\ToolTip.cs (8)
1327
left = (rect.left < screen.WorkingArea.
Left
) ? screen.WorkingArea.
Left
: rect.left,
1482
int pointX = (toolRectangle.
Left
+ toolRectangle.Right) / 2;
1550
int centeredX = toolRectangle.
Left
+ toolRectangle.Width / 2 - width / 2; // tooltip will be aligned with tool vertically
1558
new Rectangle(toolRectangle.
Left
- width, centeredY, width, height),
1630
return new Point(optimalLocation.
Left
, optimalLocation.Top);
1938
if (moveToLocation.X < screen.WorkingArea.
Left
)
1940
moveToLocation.X = screen.WorkingArea.
Left
;
System.Windows.Forms.Design (72)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (6)
205
_dropDownRectangle.X = bounds.
Left
+ 1;
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);
245
Convert.ToInt32(dropDownRect.
Left
+ dropDownRect.Width / 2),
System\ComponentModel\Design\DesignerActionPanel.cs (6)
245
if (rectangleAnchor.
Left
- sizePanel.Width < rectScreen.
Left
)
294
x = rectScreen.
Left
;
300
x = rectScreen.
Left
;
324
x = rectangleAnchor.
Left
- sizePanel.Width - EDGE_SPACE;
330
x = rectangleAnchor.
Left
- sizePanel.Width - EDGE_SPACE;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
168
int maxDelta = location.X - workingArea.
Left
;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
210
pe.Graphics.DrawImage(image, _bounds.
Left
, _bounds.Top);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (16)
204
int xOffset = controlBounds.
Left
;
833
lines[i].X2 = Math.Max(dragRect.
Left
, lines[i].OriginalBounds.
Left
);
837
lines[i].X1 = lines[i].OriginalBounds.
Left
;
838
lines[i].X2 = dragRect.
Left
;
851
int coord = Math.Max(dragRect.
Left
, lines[i].OriginalBounds.
Left
);
954
line = new Line(Math.Min(dragBounds.
Left
+ (_snapPointX != INVALID_VALUE ? _snapPointX : 0), bounds.
Left
), snapLine.Offset,
1018
if (bounds.
Left
< dragBounds.
Left
)
1020
if (bounds.
Left
+ bounds.Width < dragBounds.
Left
)
1025
else if (dragBounds.
Left
+ dragBounds.Width < bounds.
Left
)
1144
Rectangle tempDragRect = new(dragBounds.
Left
+ snapPoint.X, dragBounds.Top + snapPoint.Y, dragBounds.Width, dragBounds.Height);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
108
int xDelta = controlBounds.
Left
% _parentGridSize.Width;
715
xOffset = !fRTL ? controlBounds.Right : controlBounds.
Left
;
728
xPos = !fRTL ? controlBounds.
Left
: controlBounds.Right;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (7)
128
if (line.X1 == _lastRectangle.
Left
)
132
offset.X = _lastRectangle.
Left
- mouseLoc.X;
186
if (Math.Max(line.X1, line.X2) <= _lastRectangle.
Left
)
190
offset.X = _lastRectangle.
Left
- mouseLoc.X;
215
offset.X = _lastRectangle.
Left
- mouseLoc.X;
236
new(SnapLineType.Left, r.
Left
),
242
new(SnapLineType.Vertical, r.
Left
- 4, SnapLine.MarginLeft, SnapLinePriority.Always),
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
229
pe.Graphics.DrawImage(_image, _glyphBounds.
Left
, _glyphBounds.Top);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2031
int w = bounds.
Left
+ bounds.Width;
System\Windows\Forms\Design\DesignerUtils.cs (8)
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);
286
bounds.
Left
+ s_lockedHandleUpperOffset,
287
bounds.Top, bounds.
Left
+ s_lockedHandleUpperOffset + 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),
463
SelectionBorderGlyphType.Bottom => new Rectangle(originalBounds.
Left
- borderSize, originalBounds.Bottom, originalBounds.Width + 2 * borderSize, borderSize),
464
SelectionBorderGlyphType.Left => new Rectangle(originalBounds.
Left
- borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (11)
153
bounds.
Left
- (IsRtl ? margin.Right : margin.Left),
289
if (marginBounds.
Left
< currentMinTopLeft)
291
currentMinTopLeft = marginBounds.
Left
;
396
ReDrawIBar(new Point(bounds.
Left
, bounds.Top), new Point(bounds.
Left
, bounds.Bottom));
402
ReDrawIBar(new Point(bounds.
Left
, bounds.Top), new Point(bounds.Right, bounds.Top));
405
ReDrawIBar(new Point(bounds.
Left
, bounds.Bottom), 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));
424
ReDrawIBar(new Point(bounds.
Left
, bounds.Top), new Point(bounds.Right, bounds.Top));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
319
snapLines.Add(new SnapLine(SnapLineType.Vertical, displayRectangle.
Left
, SnapLine.PaddingLeft, SnapLinePriority.Always));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
862
int startX = isRTL ? rc.Right : rc.
Left
;
884
graphics.DrawLine(pen, rc.
Left
, startY, rc.Right, startY);
1136
Rectangle gBounds = new(checkBounds.
Left
, startLoc - halfSize, checkBounds.Width, DesignerUtils.s_resizeGlyphSize);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
579
if (parentBounds.Contains(r.
Left
, r.Top))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1898
_hotRegion = new Rectangle(bounds.
Left
+ 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4);
1919
_hotRegion = new Rectangle(bounds.
Left
+ 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)
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);
DragDropTests.cs (3)
199
X = (startCoordinates.X - vscreen.
Left
) * DesktopNormalizedMax / vscreen.Width + DesktopNormalizedMax / (vscreen.Width * 2),
204
X = (endCoordinates.X - vscreen.
Left
) * DesktopNormalizedMax / vscreen.Width + DesktopNormalizedMax / (vscreen.Width * 2),
916
if (((MousePosition.X - _screenOffset.X) < form.DesktopBounds.
Left
) ||
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));