131 references to DrawLine
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
79
e.Graphics.
DrawLine
(
System.Drawing.Common.Tests (4)
System\Drawing\Graphics_DrawLineTests.cs (4)
44
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawLine
(null, 0, 0, 0, 0));
58
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawLine
(pen, 0, 0, 0, 0));
73
Assert.Throws<InvalidOperationException>(() => graphics.
DrawLine
(pen, 0, 0, 0, 0));
92
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawLine
(pen, 0, 0, 0, 0));
System.Windows.Forms (96)
System\Windows\Forms\Control.cs (2)
8127
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Top,
8129
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Bottom,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (13)
2099
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2101
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2108
g.
DrawLine
(pen, valBounds.X, valBounds.Y + valBounds.Height - 1,
2110
g.
DrawLine
(pen, valBounds.X + valBounds.Width - 1, valBounds.Y,
2119
g.
DrawLine
(pen, dropRect.X, dropRect.Y + dropRect.Height - 1,
2121
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 1, dropRect.Y,
2128
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2130
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2138
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2140
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2148
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + dropRect.Height - 2,
2150
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 2, dropRect.Y + 1,
2193
g.
DrawLine
(SystemPens.ControlText, pt1.X, pt1.Y, pt2.X, pt2.Y);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (4)
113
Graphics.
DrawLine
(SystemPens.ControlLightLight, r.X, r.Y, r.Right, r.Y);
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\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
519
e.Graphics.
DrawLine
(pen, 0, y, Width, y);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (6)
302
g.
DrawLine
(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y);
304
g.
DrawLine
(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
307
g.
DrawLine
(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1);
309
g.
DrawLine
(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1);
362
g.
DrawLine
(foreColorPen, startX, bounds.Top, startX, bounds.Bottom - 1);
375
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
67
g.
DrawLine
(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y);
69
g.
DrawLine
(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
72
g.
DrawLine
(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1);
74
g.
DrawLine
(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
194
g.
DrawLine
(SystemPens.ControlText,
199
g.
DrawLine
(SystemPens.ButtonHighlight,
207
g.
DrawLine
(SystemPens.ControlText,
212
g.
DrawLine
(SystemPens.ButtonHighlight,
1026
e.Graphics.
DrawLine
(p, 0, 0, e.ToolStrip.Width, 0);
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\ToolStripSystemRenderer.cs (12)
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);
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);
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);
766
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0, 0, e.ToolStrip.Width, 0);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (4)
442
g.
DrawLine
(
449
g.
DrawLine
(
458
g.
DrawLine
(
464
g.
DrawLine
(
System\Windows\Forms\Rendering\ControlPaint.cs (43)
1087
graphics.
DrawLine
(
1090
graphics.
DrawLine
(
1283
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y, bounds.Right - 2, bounds.Y);
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);
1295
graphics.
DrawLine
(pen, bounds.X, midy, bounds.Right - 2, midy);
1298
graphics.
DrawLine
(pen, midx - 1, bounds.Y + 2, midx + 1, bounds.Y + 2);
1299
graphics.
DrawLine
(pen, midx - 2, bounds.Y + 3, midx + 2, bounds.Y + 3);
1302
graphics.
DrawLine
(pen, bounds.X + 2, midy - 1, bounds.X + 2, midy + 1);
1303
graphics.
DrawLine
(pen, bounds.X + 3, midy - 2, bounds.X + 3, midy + 2);
1306
graphics.
DrawLine
(pen, bounds.Right - 3, midy - 1, bounds.Right - 3, midy + 1);
1307
graphics.
DrawLine
(pen, bounds.Right - 4, midy - 2, bounds.Right - 4, midy + 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);
1906
graphics.
DrawLine
(dark, right - (i + 1) - 2, bottom, right, bottom - (i + 1) - 2);
1907
graphics.
DrawLine
(dark, right - (i + 2) - 2, bottom, right, bottom - (i + 2) - 2);
1908
graphics.
DrawLine
(bright, right - (i + 3) - 2, bottom, right, bottom - (i + 3) - 2);
2338
g.
DrawLine
(SystemPens.ControlDark, x, y, right - 1, y);
2339
g.
DrawLine
(SystemPens.ControlDark, x, y, x, bottom - 1);
2340
g.
DrawLine
(SystemPens.Window, right - 1, y, right - 1, bottom - 1);
2341
g.
DrawLine
(SystemPens.Window, x, bottom - 1, right - 1, bottom - 1);
2347
g.
DrawLine
(SystemPens.Window, x, y, right - 1, y);
2348
g.
DrawLine
(SystemPens.Window, x, y, x, bottom - 1);
2349
g.
DrawLine
(SystemPens.ControlDark, right - 1, y, right - 1, bottom - 1);
2350
g.
DrawLine
(SystemPens.ControlDark, x, bottom - 1, right - 1, bottom - 1);
2368
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2369
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2370
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2371
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2379
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2380
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2382
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2383
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2387
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2388
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2389
g.
DrawLine
(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2390
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2399
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2400
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2401
g.
DrawLine
(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2402
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
System.Windows.Forms.Design (29)
System\ComponentModel\Design\ByteViewer.cs (1)
160
g.
DrawLine
(
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.PanelHeaderLine.cs (1)
106
g.
DrawLine
(p, 0, lineHeight - 1, lineWidth, lineHeight - 1);
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
29
g.
DrawLine
(p, SeparatorHorizontalPadding, 0, lineWidth - (SeparatorHorizontalPadding + 1), 0);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
893
_graphics.
DrawLine
(currentPen, lines[i].X1, lines[i].Y1, lines[i].X2, lines[i].Y2);
System\Windows\Forms\Design\DesignerUtils.cs (4)
197
g.
DrawLine
(pen, 1, 0, imageSize.Width - 2, 0);
198
g.
DrawLine
(pen, 1, imageSize.Height - 1, imageSize.Width - 2, imageSize.Height - 1);
199
g.
DrawLine
(pen, 0, 1, 0, imageSize.Height - 2);
200
g.
DrawLine
(pen, imageSize.Width - 1, 1, imageSize.Width - 1, imageSize.Height - 2);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (14)
488
graphics.
DrawLine
(pen, point1.X - IBarHalfSize, point1.Y, point1.X + IBarHalfSize, point1.Y); // top hat
489
graphics.
DrawLine
(pen, point2.X - IBarHalfSize, point2.Y, point2.X + IBarHalfSize, point2.Y); // bottom hat
498
graphics.
DrawLine
(
505
graphics.
DrawLine
(
514
graphics.
DrawLine
(pen, point1.X, point1.Y, point1.X, point1.Y + IBarHatHeight - 1); // top hat
515
graphics.
DrawLine
(pen, point2.X, point2.Y, point2.X, point2.Y - IBarHatHeight + 1); // bottom hat
518
graphics.
DrawLine
(pen, point1.X, point1.Y + IBarLineOffset, point2.X, point2.Y - IBarLineOffset);
527
graphics.
DrawLine
(pen, point1.X, point1.Y - IBarHalfSize, point1.X, point1.Y + IBarHalfSize); // top hat
528
graphics.
DrawLine
(pen, point2.X, point2.Y - IBarHalfSize, point2.X, point2.Y + IBarHalfSize); // bottom hat
537
graphics.
DrawLine
(
544
graphics.
DrawLine
(
553
graphics.
DrawLine
(pen, point1.X, point1.Y, point1.X + IBarHatHeight - 1, point1.Y); // left hat
554
graphics.
DrawLine
(pen, point2.X, point2.Y, point2.X - IBarHatHeight + 1, point2.Y); // right hat
557
graphics.
DrawLine
(pen, point1.X + IBarLineOffset, point1.Y, point2.X - IBarLineOffset, point2.Y);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
874
graphics.
DrawLine
(pen, startX, rc.Top, startX, rc.Bottom);
884
graphics.
DrawLine
(pen, rc.Left, startY, rc.Right, startY);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1979
g.
DrawLine
(p, buttonBounds.Left, buttonBounds.Top + 1, buttonBounds.Left, buttonBounds.Bottom - 1);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\SystemDrawingExtensions.cs (1)
60
graphics.
DrawLine
(pen, lines[i], lines[i + 1], lines[i + 2], lines[i + 3]);