262 references to DrawLine
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
72
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 (226)
System\Windows\Forms\Control.cs (2)
8229
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Top,
8231
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Bottom,
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);
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);
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\DarkMode\PopupButtonDarkModeRenderer.cs (8)
177
graphics.
DrawLine
(topLeftOuterPen, borderRect.Left, borderRect.Top, borderRect.Right - 1, borderRect.Top);
179
graphics.
DrawLine
(topLeftOuterPen, borderRect.Left, borderRect.Top, borderRect.Left, borderRect.Bottom - 1);
181
graphics.
DrawLine
(bottomRightOuterPen, borderRect.Left, borderRect.Bottom - 1, borderRect.Right - 1, borderRect.Bottom - 1);
183
graphics.
DrawLine
(bottomRightOuterPen, borderRect.Right - 1, borderRect.Top, borderRect.Right - 1, borderRect.Bottom - 1);
194
graphics.
DrawLine
(topLeftInnerPen, borderRect.Left, borderRect.Top, borderRect.Right - 1, borderRect.Top);
196
graphics.
DrawLine
(topLeftInnerPen, borderRect.Left, borderRect.Top, borderRect.Left, borderRect.Bottom - 1);
198
graphics.
DrawLine
(bottomRightInnerPen, borderRect.Left, borderRect.Bottom - 1, borderRect.Right - 1, borderRect.Bottom - 1);
200
graphics.
DrawLine
(bottomRightInnerPen, borderRect.Right - 1, borderRect.Top, borderRect.Right - 1, borderRect.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (32)
3215
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3219
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3223
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3239
graphics.
DrawLine
(penBackColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3240
graphics.
DrawLine
(penControlLightLight, bounds.X, y1, bounds.X, y2);
3257
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3258
graphics.
DrawLine
(penControlLightLight, bounds.X + 1, y1, bounds.X + 1, y2);
3275
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3276
graphics.
DrawLine
(penControlDark, bounds.X + 1, y1, bounds.X + 1, y2);
3283
graphics.
DrawLine
(penGridColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3287
graphics.
DrawLine
(penControlLightLight, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3291
graphics.
DrawLine
(penControlDark, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3307
graphics.
DrawLine
(penBackColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3308
graphics.
DrawLine
(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2);
3325
graphics.
DrawLine
(penControlDark, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1);
3326
graphics.
DrawLine
(penControlLightLight, bounds.Right - 1, y1, bounds.Right - 1, y2);
3344
graphics.
DrawLine
(penControlLightLight, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1);
3345
graphics.
DrawLine
(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2);
3353
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3371
graphics.
DrawLine
(penControlDark, x1, bounds.Y, x2, bounds.Y);
3389
graphics.
DrawLine
(penControlLightLight, x1, bounds.Y, x2, bounds.Y);
3415
graphics.
DrawLine
(penBackColor, x1, bounds.Y, x2, bounds.Y);
3416
graphics.
DrawLine
(penControlLightLight, x1 + 1, bounds.Y, x2 - 1, bounds.Y);
3434
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3435
graphics.
DrawLine
(penControlLightLight, x1, bounds.Y + 1, x2, bounds.Y + 1);
3453
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3454
graphics.
DrawLine
(penControlDark, x1, bounds.Y + 1, x2, bounds.Y + 1);
3461
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
3471
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3483
graphics.
DrawLine
(penControlDark, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3509
graphics.
DrawLine
(penBackColor, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3510
graphics.
DrawLine
(penControlDark, x1 + 1, bounds.Bottom - 1, x2 - 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1321
g.
DrawLine
(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right - 1, checkBounds.Top);
1322
g.
DrawLine
(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (24)
1016
g.
DrawLine
(penControlDark,
1021
g.
DrawLine
(penControlDark,
1026
g.
DrawLine
(penControlLightLight,
1031
g.
DrawLine
(penControlLightLight,
1036
g.
DrawLine
(penControlLightLight,
1045
g.
DrawLine
(penControlLightLight,
1050
g.
DrawLine
(penControlLightLight,
1055
g.
DrawLine
(penControlDark,
1060
g.
DrawLine
(penControlDark,
1065
g.
DrawLine
(penControlDark,
1076
g.
DrawLine
(penControlDark,
1083
g.
DrawLine
(penControlDark,
1100
g.
DrawLine
(penControlDark,
1105
g.
DrawLine
(penControlDark,
1110
g.
DrawLine
(penControlLightLight,
1115
g.
DrawLine
(penControlLightLight,
1120
g.
DrawLine
(penControlLightLight,
1129
g.
DrawLine
(penControlLightLight,
1134
g.
DrawLine
(penControlLightLight,
1139
g.
DrawLine
(penControlDark,
1144
g.
DrawLine
(penControlDark,
1149
g.
DrawLine
(penControlDark,
1160
g.
DrawLine
(penControlDark,
1167
g.
DrawLine
(penControlDark,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (13)
2092
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2094
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2101
g.
DrawLine
(pen, valBounds.X, valBounds.Y + valBounds.Height - 1,
2103
g.
DrawLine
(pen, valBounds.X + valBounds.Width - 1, valBounds.Y,
2112
g.
DrawLine
(pen, dropRect.X, dropRect.Y + dropRect.Height - 1,
2114
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 1, dropRect.Y,
2121
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2123
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2131
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2133
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2141
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + dropRect.Height - 2,
2143
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 2, dropRect.Y + 1,
2186
g.
DrawLine
(SystemPens.ControlText, pt1.X, pt1.Y, pt2.X, pt2.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (6)
378
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
379
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
384
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
385
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
390
graphics.
DrawLine
(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Bottom - 1);
391
graphics.
DrawLine
(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.Right - 1, bounds.Y + 1);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (8)
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);
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);
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\CategoryGridEntry.cs (2)
137
g.
DrawLine
(topLinePen, rect.X - 1, rect.Y - 1, rect.Width + 2, rect.Y - 1);
154
g.
DrawLine
(topLinePen, rect.X - 2, rect.Y - 1, rect.Width + 1, rect.Y - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1547
g.
DrawLine
(linePen, totalWidth, rect.Y, totalWidth, rect.Height);
1754
g.
DrawLine
(
1764
g.
DrawLine
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
3317
g.
DrawLine
(splitterPen, _labelWidth, location.Y, _labelWidth, visibleCount * (RowHeight + 1) + location.Y);
3336
g.
DrawLine
(linePen, lineStart, currentRowHeight, lineEnd, currentRowHeight);
3358
g.
DrawLine
(linePen, lineStart, currentRowHeight, lineEnd, currentRowHeight);
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 (13)
194
g.
DrawLine
(SystemPens.ControlText,
199
g.
DrawLine
(SystemPens.ButtonHighlight,
207
g.
DrawLine
(SystemPens.ControlText,
212
g.
DrawLine
(SystemPens.ButtonHighlight,
425
g.
DrawLine
(pen, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1);
429
g.
DrawLine
(pen, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3);
435
g.
DrawLine
(pen, bounds.Width - 1, 0, bounds.Width - 1, bounds.Height - 1);
439
g.
DrawLine
(pen, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3);
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);
1529
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
1535
g.
DrawLine
(highlightColorPen, bounds.Left + 1, startY, bounds.Right - 1, startY);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (9)
203
g.
DrawLine
(borderPen, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1);
217
g.
DrawLine
(borderPen, 0, 0, bounds.Width, 0);
337
e.Graphics.
DrawLine
(
378
g.
DrawLine
(leftPen, startX, bounds.Top, startX, bounds.Bottom);
383
g.
DrawLine
(rightPen, startX, bounds.Top, startX, bounds.Bottom);
388
g.
DrawLine
(leftPen, startX, bounds.Top, startX, bounds.Bottom);
393
g.
DrawLine
(rightPen, startX, bounds.Top, startX, bounds.Bottom);
407
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right, startY);
412
g.
DrawLine
(darkModePen, bounds.Left, startY, bounds.Right, startY);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (13)
316
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1);
317
e.Graphics.
DrawLine
(SystemPens.InactiveBorder, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2);
321
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1);
322
e.Graphics.
DrawLine
(SystemPens.ButtonShadow, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2);
780
g.
DrawLine
(leftPen, startX, bounds.Top, startX, bounds.Bottom);
784
g.
DrawLine
(rightPen, startX, bounds.Top, startX, bounds.Bottom);
796
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right, startY);
800
g.
DrawLine
(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.Right, startY);
816
g.
DrawLine
(topPen, bounds.Left, bounds.Top, bounds.Right - 1, bounds.Top);
817
g.
DrawLine
(leftPen, bounds.Left, bounds.Top, bounds.Left, bounds.Bottom - 1);
818
g.
DrawLine
(rightPen, bounds.Right - 1, bounds.Top, bounds.Right - 1, bounds.Bottom - 1);
819
g.
DrawLine
(bottomPen, bounds.Left, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
827
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 (61)
735
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
794
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
858
graphics.
DrawLine
(
932
graphics.
DrawLine
(
1063
graphics.
DrawLine
(darkPen, bounds.X, bounds.Y, bounds.X + bounds.Width - 1, bounds.Y);
1064
graphics.
DrawLine
(darkPen, bounds.X, bounds.Y, bounds.X, bounds.Y + bounds.Height - 1);
1068
graphics.
DrawLine
(
1071
graphics.
DrawLine
(
1077
graphics.
DrawLine
(mediumPen, bounds.X + 1, bounds.Y + 1, bounds.X + bounds.Width - 2, bounds.Y + 1);
1078
graphics.
DrawLine
(mediumPen, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Y + bounds.Height - 2);
1084
graphics.
DrawLine
(
1087
graphics.
DrawLine
(
1102
graphics.
DrawLine
(lightPen, bounds.X, bounds.Y, bounds.X + bounds.Width - 1, bounds.Y);
1103
graphics.
DrawLine
(lightPen, bounds.X, bounds.Y, bounds.X, bounds.Y + bounds.Height - 1);
1108
graphics.
DrawLine
(
1111
graphics.
DrawLine
(
1122
graphics.
DrawLine
(topLeftPen, bounds.X + 1, bounds.Y + 1, bounds.X + bounds.Width - 2, bounds.Y + 1);
1123
graphics.
DrawLine
(topLeftPen, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Y + bounds.Height - 2);
1128
graphics.
DrawLine
(
1131
graphics.
DrawLine
(
1280
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y, bounds.Right - 2, bounds.Y);
1281
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Bottom - 1, bounds.Right - 2, bounds.Bottom - 1);
1282
graphics.
DrawLine
(pen, bounds.X, bounds.Y + 1, bounds.X, bounds.Bottom - 2);
1283
graphics.
DrawLine
(pen, bounds.Right - 1, bounds.Y + 1, bounds.Right - 1, bounds.Bottom - 2);
1289
graphics.
DrawLine
(pen, midx, bounds.Y, midx, bounds.Bottom - 2);
1292
graphics.
DrawLine
(pen, bounds.X, midy, bounds.Right - 2, midy);
1295
graphics.
DrawLine
(pen, midx - 1, bounds.Y + 2, midx + 1, bounds.Y + 2);
1296
graphics.
DrawLine
(pen, midx - 2, bounds.Y + 3, midx + 2, bounds.Y + 3);
1299
graphics.
DrawLine
(pen, bounds.X + 2, midy - 1, bounds.X + 2, midy + 1);
1300
graphics.
DrawLine
(pen, bounds.X + 3, midy - 2, bounds.X + 3, midy + 2);
1303
graphics.
DrawLine
(pen, bounds.Right - 3, midy - 1, bounds.Right - 3, midy + 1);
1304
graphics.
DrawLine
(pen, bounds.Right - 4, midy - 2, bounds.Right - 4, midy + 2);
1307
graphics.
DrawLine
(pen, midx - 1, bounds.Bottom - 3, midx + 1, bounds.Bottom - 3);
1308
graphics.
DrawLine
(pen, midx - 2, bounds.Bottom - 4, midx + 2, bounds.Bottom - 4);
1902
graphics.
DrawLine
(dark, right - (i + 1) - 2, bottom, right, bottom - (i + 1) - 2);
1903
graphics.
DrawLine
(dark, right - (i + 2) - 2, bottom, right, bottom - (i + 2) - 2);
1904
graphics.
DrawLine
(bright, right - (i + 3) - 2, bottom, right, bottom - (i + 3) - 2);
2334
g.
DrawLine
(SystemPens.ControlDark, x, y, right - 1, y);
2335
g.
DrawLine
(SystemPens.ControlDark, x, y, x, bottom - 1);
2336
g.
DrawLine
(SystemPens.Window, right - 1, y, right - 1, bottom - 1);
2337
g.
DrawLine
(SystemPens.Window, x, bottom - 1, right - 1, bottom - 1);
2343
g.
DrawLine
(SystemPens.Window, x, y, right - 1, y);
2344
g.
DrawLine
(SystemPens.Window, x, y, x, bottom - 1);
2345
g.
DrawLine
(SystemPens.ControlDark, right - 1, y, right - 1, bottom - 1);
2346
g.
DrawLine
(SystemPens.ControlDark, x, bottom - 1, right - 1, bottom - 1);
2364
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2365
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2366
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2367
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2375
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2376
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2378
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2379
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2383
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2384
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2385
g.
DrawLine
(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2386
g.
DrawLine
(SystemPens.Window, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2395
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2396
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2397
g.
DrawLine
(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2398
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 (30)
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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
705
e.Graphics.
DrawLine
(SystemPens.ControlDark, e.Bounds.X + 2, e.Bounds.Y + 2, e.Bounds.Right - 2, e.Bounds.Y + 2);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1940
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]);