307 references to DrawLine
System.Drawing (1)
commonui\System\Drawing\Graphics.cs (1)
1222
DrawLine
(pen, pt1.X, pt1.Y, pt2.X, pt2.Y);
System.Web.Mobile (4)
UI\MobileControls\Design\Util\GroupLabel.cs (2)
51
g.
DrawLine
(SystemPens.ControlDark, etchLeft, etchTop, r.Width, etchTop);
54
g.
DrawLine
(SystemPens.ControlLightLight, etchLeft, etchTop, r.Width, etchTop);
UI\MobileControls\Design\Util\ImageCreator.cs (2)
119
g.
DrawLine
(controlDarkPen, 0, barHeight - 1, width, barHeight - 1);
132
g.
DrawLine
(windowPen, 0, barHeight, width, barHeight);
System.Windows.Forms (259)
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (8)
101
g.
DrawLine
(windowFrame, r.Left + 1, r.Top + 1, r.Right - 2, r.Top + 1);
102
g.
DrawLine
(windowFrame, r.Left + 1, r.Top + 1, r.Left + 1, r.Bottom - 2);
105
g.
DrawLine
(windowFrame, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1);
106
g.
DrawLine
(windowFrame, r.Right - 1, r.Top, r.Right - 1, r.Bottom);
109
g.
DrawLine
(highlight, r.Left, r.Top, r.Right, r.Top);
110
g.
DrawLine
(highlight, r.Left, r.Top, r.Left, r.Bottom);
113
g.
DrawLine
(buttonShadow, r.Left + 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2);
114
g.
DrawLine
(buttonShadow, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 2);
winforms\Managed\System\WinForms\Control.cs (2)
9747
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Top,
9749
e.Graphics.
DrawLine
(pen, clientRectangle.Left, clientRectangle.Bottom,
winforms\Managed\System\WinForms\ControlPaint.cs (77)
681
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
689
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
697
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
706
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
717
graphics.
DrawLine
(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i);
736
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
744
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
752
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
761
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
771
graphics.
DrawLine
(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]);
790
graphics.
DrawLine
(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i);
798
graphics.
DrawLine
(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i);
806
graphics.
DrawLine
(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i);
815
graphics.
DrawLine
(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i);
826
graphics.
DrawLine
(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i);
845
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]);
853
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]);
861
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]);
870
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]);
881
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]);
991
graphics.
DrawLine
(pen, bounds.X, bounds.Y,
993
graphics.
DrawLine
(pen, bounds.X, bounds.Y,
998
graphics.
DrawLine
(pen, bounds.X, bounds.Y + bounds.Height - 1,
1000
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1, bounds.Y,
1005
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + 1,
1007
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + 1,
1013
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + bounds.Height - 2,
1015
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 2, bounds.Y + 1,
1029
graphics.
DrawLine
(pen, bounds.X, bounds.Y,
1031
graphics.
DrawLine
(pen, bounds.X, bounds.Y,
1040
graphics.
DrawLine
(pen, bounds.X, bounds.Y + bounds.Height - 1,
1042
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 1, bounds.Y,
1056
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + 1,
1058
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + 1,
1069
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y + bounds.Height - 2,
1071
graphics.
DrawLine
(pen, bounds.X + bounds.Width - 2, bounds.Y + 1,
1197
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Y, bounds.Right -2, bounds.Y);
1198
graphics.
DrawLine
(pen, bounds.X + 1, bounds.Bottom - 1, bounds.Right -2, bounds.Bottom - 1);
1199
graphics.
DrawLine
(pen, bounds.X, bounds.Y + 1, bounds.X, bounds.Bottom -2);
1200
graphics.
DrawLine
(pen, bounds.Right - 1, bounds.Y + 1, bounds.Right - 1, bounds.Bottom -2);
1206
graphics.
DrawLine
(pen, midx, bounds.Y, midx, bounds.Bottom - 2);
1209
graphics.
DrawLine
(pen, bounds.X, midy, bounds.Right - 2, midy);
1212
graphics.
DrawLine
(pen, midx - 1, bounds.Y+2, midx+1, bounds.Y+2);
1213
graphics.
DrawLine
(pen, midx - 2, bounds.Y+3, midx+2, bounds.Y+3);
1216
graphics.
DrawLine
(pen, bounds.X+2, midy - 1, bounds.X + 2, midy + 1);
1217
graphics.
DrawLine
(pen, bounds.X+3, midy - 2, bounds.X + 3, midy + 2);
1220
graphics.
DrawLine
(pen, bounds.Right - 3, midy - 1, bounds.Right - 3, midy + 1);
1221
graphics.
DrawLine
(pen, bounds.Right - 4, midy - 2, bounds.Right - 4, midy + 2);
1224
graphics.
DrawLine
(pen, midx - 1, bounds.Bottom - 3, midx+1, bounds.Bottom - 3);
1225
graphics.
DrawLine
(pen, midx - 2, bounds.Bottom - 4, midx+2, bounds.Bottom - 4);
1915
graphics.
DrawLine
(dark, right - (i + 1) - 2, bottom, right, bottom - (i + 1) - 2);
1916
graphics.
DrawLine
(dark, right - (i + 2) - 2, bottom, right, bottom - (i + 2) - 2);
1917
graphics.
DrawLine
(bright, right - (i + 3) - 2, bottom, right, bottom - (i + 3) - 2);
2424
g.
DrawLine
(SystemPens.ControlDark, x, y, right - 1, y);
2425
g.
DrawLine
(SystemPens.ControlDark, x, y, x, bottom - 1);
2427
g.
DrawLine
(pen, right - 1, y, right - 1, bottom - 1);
2428
g.
DrawLine
(pen, x, bottom - 1, right - 1, bottom - 1);
2436
g.
DrawLine
(pen, x, y, right - 1, y);
2437
g.
DrawLine
(pen, x, y, x, bottom - 1);
2439
g.
DrawLine
(SystemPens.ControlDark, right - 1, y, right - 1, bottom - 1);
2440
g.
DrawLine
(SystemPens.ControlDark, x, bottom - 1, right - 1, bottom - 1);
2459
g.
DrawLine
(pen, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2460
g.
DrawLine
(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2463
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2464
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2473
g.
DrawLine
(pen, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2474
g.
DrawLine
(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2477
g.
DrawLine
(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2478
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2482
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2483
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2485
g.
DrawLine
(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2486
g.
DrawLine
(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2497
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y);
2498
g.
DrawLine
(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1);
2500
g.
DrawLine
(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
2501
g.
DrawLine
(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
726
g.
DrawLine
(gridLinePen, rowBounds.X, rowBounds.Bottom,
796
g.
DrawLine
(Pens.Black, bounds.X, bounds.Y, bounds.X + bounds.Width, bounds.Y); // the top
797
g.
DrawLine
(Pens.White, bounds.X + bounds.Width, bounds.Y, bounds.X + bounds.Width, bounds.Y + bounds.Height); // the right side
798
g.
DrawLine
(Pens.White, bounds.X + bounds.Width, bounds.Y + bounds.Height, bounds.X, bounds.Y + bounds.Height); // the right side
799
g.
DrawLine
(Pens.Black, bounds.X, bounds.Y + bounds.Height, bounds.X, bounds.Y); // the left side
955
g.
DrawLine
(new Pen(SystemColors.ControlDark),
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
764
g.
DrawLine
(drawPen,
770
g.
DrawLine
(drawPen,
winforms\Managed\System\WinForms\DataGridViewCell.cs (32)
3646
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3650
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3654
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3669
graphics.
DrawLine
(penBackColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3670
graphics.
DrawLine
(penControlLightLight, bounds.X, y1, bounds.X, y2);
3685
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3686
graphics.
DrawLine
(penControlLightLight, bounds.X + 1, y1, bounds.X + 1, y2);
3701
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
3702
graphics.
DrawLine
(penControlDark, bounds.X + 1, y1, bounds.X + 1, y2);
3709
graphics.
DrawLine
(penGridColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3713
graphics.
DrawLine
(penControlLightLight, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3717
graphics.
DrawLine
(penControlDark, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3732
graphics.
DrawLine
(penBackColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1);
3733
graphics.
DrawLine
(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2);
3748
graphics.
DrawLine
(penControlDark, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1);
3749
graphics.
DrawLine
(penControlLightLight, bounds.Right - 1, y1, bounds.Right - 1, y2);
3765
graphics.
DrawLine
(penControlLightLight, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1);
3766
graphics.
DrawLine
(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2);
3774
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3790
graphics.
DrawLine
(penControlDark, x1, bounds.Y, x2, bounds.Y);
3806
graphics.
DrawLine
(penControlLightLight, x1, bounds.Y, x2, bounds.Y);
3830
graphics.
DrawLine
(penBackColor, x1, bounds.Y, x2, bounds.Y);
3831
graphics.
DrawLine
(penControlLightLight, x1 + 1, bounds.Y, x2 - 1, bounds.Y);
3847
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3848
graphics.
DrawLine
(penControlLightLight, x1, bounds.Y + 1, x2, bounds.Y + 1);
3864
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
3865
graphics.
DrawLine
(penControlDark, x1, bounds.Y + 1, x2, bounds.Y + 1);
3872
graphics.
DrawLine
(penGridColor, bounds.X, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
3881
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3892
graphics.
DrawLine
(penControlDark, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3916
graphics.
DrawLine
(penBackColor, x1, bounds.Bottom - 1, x2, bounds.Bottom - 1);
3917
graphics.
DrawLine
(penControlDark, x1 + 1, bounds.Bottom - 1, x2 - 1, bounds.Bottom - 1);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1393
g.
DrawLine
(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right-1, checkBounds.Top);
1394
g.
DrawLine
(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom-1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (24)
1029
g.
DrawLine
(penControlDark,
1034
g.
DrawLine
(penControlDark,
1039
g.
DrawLine
(penControlLightLight,
1044
g.
DrawLine
(penControlLightLight,
1049
g.
DrawLine
(penControlLightLight,
1058
g.
DrawLine
(penControlLightLight,
1063
g.
DrawLine
(penControlLightLight,
1068
g.
DrawLine
(penControlDark,
1073
g.
DrawLine
(penControlDark,
1078
g.
DrawLine
(penControlDark,
1089
g.
DrawLine
(penControlDark,
1095
g.
DrawLine
(penControlDark,
1112
g.
DrawLine
(penControlDark,
1117
g.
DrawLine
(penControlDark,
1122
g.
DrawLine
(penControlLightLight,
1127
g.
DrawLine
(penControlLightLight,
1132
g.
DrawLine
(penControlLightLight,
1141
g.
DrawLine
(penControlLightLight,
1146
g.
DrawLine
(penControlLightLight,
1151
g.
DrawLine
(penControlDark,
1156
g.
DrawLine
(penControlDark,
1161
g.
DrawLine
(penControlDark,
1172
g.
DrawLine
(penControlDark,
1178
g.
DrawLine
(penControlDark,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (13)
2367
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2369
g.
DrawLine
(pen, dropRect.X, dropRect.Y,
2375
g.
DrawLine
(pen, valBounds.X, valBounds.Y + valBounds.Height - 1,
2377
g.
DrawLine
(pen, valBounds.X + valBounds.Width - 1, valBounds.Y,
2389
g.
DrawLine
(pen, dropRect.X, dropRect.Y + dropRect.Height - 1,
2391
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 1, dropRect.Y,
2397
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2399
g.
DrawLine
(pen, valBounds.X, valBounds.Y,
2413
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2415
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + 1,
2427
g.
DrawLine
(pen, dropRect.X + 1, dropRect.Y + dropRect.Height - 2,
2429
g.
DrawLine
(pen, dropRect.X + dropRect.Width - 2, dropRect.Y + 1,
2473
g.
DrawLine
(SystemPens.ControlText, pt1.X, pt1.Y, pt2.X, pt2.Y);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (6)
410
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
411
graphics.
DrawLine
(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
417
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1);
418
graphics.
DrawLine
(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y);
424
graphics.
DrawLine
(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Bottom - 1);
425
graphics.
DrawLine
(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.Right - 1, bounds.Y + 1);
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (4)
178
graphics.
DrawLine
(SystemPens.ControlLightLight, r.X, r.Y, r.Right, r.Y);
179
graphics.
DrawLine
(SystemPens.ControlLightLight, r.X, r.Y, r.X, r.Bottom);
183
graphics.
DrawLine
(SystemPens.ControlDark, r.X + 1, r.Bottom, r.Right, r.Bottom);
184
graphics.
DrawLine
(SystemPens.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
winforms\Managed\System\WinForms\GroupBox.cs (15)
645
graphics.
DrawLine
(boxPen, 0, boxTop, 0, Height);
647
graphics.
DrawLine
(boxPen, 0, Height-1, Width, Height-1);
649
graphics.
DrawLine
(boxPen, 0, boxTop, textLeft, boxTop);
651
graphics.
DrawLine
(boxPen, textRight, boxTop, Width-1, boxTop);
653
graphics.
DrawLine
(boxPen, Width-1, boxTop, Width-1, Height-1);
663
graphics.
DrawLine
(light, 1, boxTop, 1, Height - 1);
664
graphics.
DrawLine
(dark, 0, boxTop, 0, Height - 2);
667
graphics.
DrawLine
(light, 0, Height - 1, Width, Height - 1);
668
graphics.
DrawLine
(dark, 0, Height - 2, Width - 1, Height - 2);
672
graphics.
DrawLine
(dark, 0, boxTop - 1, textLeft, boxTop - 1);
673
graphics.
DrawLine
(light, 1, boxTop, textLeft, boxTop);
676
graphics.
DrawLine
(dark, textRight, boxTop - 1, Width - 2, boxTop - 1);
677
graphics.
DrawLine
(light, textRight, boxTop, Width - 1, boxTop);
680
graphics.
DrawLine
(light, Width - 1, boxTop - 1, Width - 1, Height - 1);
681
graphics.
DrawLine
(dark, Width - 2, boxTop, Width - 2, Height - 2);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (18)
229
g.
DrawLine
(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.Height - 1);
230
g.
DrawLine
(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.Height - 2);
233
g.
DrawLine
(light, bounds.Left, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
234
g.
DrawLine
(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2);
237
g.
DrawLine
(light, bounds.Left + 1, bounds.Top + 1, bounds.Width - 1, bounds.Top + 1);
238
g.
DrawLine
(dark, bounds.Left, bounds.Top, bounds.Width - 2, bounds.Top);
241
g.
DrawLine
(light, bounds.Width - 1, bounds.Top, bounds.Width - 1, bounds.Height - 1);
242
g.
DrawLine
(dark, bounds.Width - 2, bounds.Top, bounds.Width - 2, bounds.Height - 2);
287
g.
DrawLine
(light, bounds.Left + 1, boxTop, bounds.Left + 1, bounds.Height - 1);
288
g.
DrawLine
(dark, bounds.Left, boxTop - 1, bounds.Left, bounds.Height - 2);
291
g.
DrawLine
(light, bounds.Left, bounds.Height - 1, bounds.Width, bounds.Height - 1);
292
g.
DrawLine
(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2);
295
g.
DrawLine
(light, bounds.Left + 1, boxTop, textBounds.X - 2, boxTop);
296
g.
DrawLine
(dark, bounds.Left, boxTop - 1, textBounds.X - 3, boxTop - 1);
299
g.
DrawLine
(light, textBounds.X + textBounds.Width + 1, boxTop, bounds.Width - 1, boxTop);
300
g.
DrawLine
(dark, textBounds.X + textBounds.Width + 2, boxTop - 1, bounds.Width - 2, boxTop - 1);
303
g.
DrawLine
(light, bounds.Width - 1, boxTop, bounds.Width - 1, bounds.Height - 1);
304
g.
DrawLine
(dark, bounds.Width - 2, boxTop - 1, bounds.Width - 2, bounds.Height - 2);
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (2)
229
g.
DrawLine
(topLinePen, rect.X - 1, rect.Y - 1, rect.Width + 2, rect.Y - 1);
240
g.
DrawLine
(topLinePen, rect.X - 2, rect.Y - 1, rect.Width + 1, rect.Y - 1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
1895
g.
DrawLine
(linePen, totalWidth, rect.Y, totalWidth, rect.Height);
2067
g.
DrawLine
(p, outline.X + indent,outline.Y + outline.Height / 2,
2072
g.
DrawLine
(p, outline.X + outline.Width/2, outline.Y + indent,
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
3508
g.
DrawLine
(splitterPen, labelWidth,loc.Y,labelWidth, (cPropsVisible)*(RowHeight+1)+loc.Y);
3529
g.
DrawLine
(linePen, cLineStart,cHeightCurRow,cLineEnd,cHeightCurRow);
3550
g.
DrawLine
(linePen, cLineStart,cHeightCurRow,cLineEnd,cHeightCurRow);
5922
pe.Graphics.
DrawLine
(pen, 0, y, Width, y);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (4)
468
g.
DrawLine
(SystemPens.ControlDark, tableBounds.Right, tableBounds.Y, tableBounds.Right, tableBounds.Bottom);
469
g.
DrawLine
(SystemPens.ControlDark, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
473
g.
DrawLine
(pen, tableBounds.X + tableBounds.Width - 1, tableBounds.Y, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
474
g.
DrawLine
(pen, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (6)
267
g.
DrawLine
(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y);
269
g.
DrawLine
(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
272
g.
DrawLine
(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1);
274
g.
DrawLine
(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1);
323
g.
DrawLine
(foreColorPen, startX, bounds.Top, startX, bounds.Bottom - 1);
336
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (4)
53
g.
DrawLine
(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y);
55
g.
DrawLine
(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
58
g.
DrawLine
(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1);
60
g.
DrawLine
(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (13)
181
g.
DrawLine
(SystemPens.ControlText,
186
g.
DrawLine
(SystemPens.ButtonHighlight,
193
g.
DrawLine
(SystemPens.ControlText,
198
g.
DrawLine
(SystemPens.ButtonHighlight,
381
g.
DrawLine
(p, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1);
384
g.
DrawLine
(p, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3);
389
g.
DrawLine
(p, bounds.Width -1, 0,bounds.Width -1, bounds.Height - 1);
392
g.
DrawLine
(p, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3);
898
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0);
1313
g.
DrawLine
(leftPen, startX, bounds.Top, startX, bounds.Bottom - 1);
1317
g.
DrawLine
(rightPen, startX, bounds.Top + 1, startX, bounds.Bottom);
1329
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
1334
g.
DrawLine
(highlightColorPen, bounds.Left + 1, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (13)
241
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1);
242
e.Graphics.
DrawLine
(SystemPens.InactiveBorder, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2);
245
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1);
246
e.Graphics.
DrawLine
(SystemPens.ButtonShadow, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2);
629
g.
DrawLine
(leftPen, startX, bounds.Top, startX, bounds.Bottom);
633
g.
DrawLine
(rightPen, startX, bounds.Top, startX, bounds.Bottom);
645
g.
DrawLine
(foreColorPen, bounds.Left, startY, bounds.Right, startY);
649
g.
DrawLine
(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.Right, startY);
670
g.
DrawLine
(topPen, bounds.Left, bounds.Top, bounds.Right -1, bounds.Top);
671
g.
DrawLine
(leftPen, bounds.Left, bounds.Top, bounds.Left, bounds.Bottom-1);
672
g.
DrawLine
(rightPen, bounds.Right-1, bounds.Top, bounds.Right -1, bounds.Bottom-1);
673
g.
DrawLine
(bottomPen, bounds.Left, bounds.Bottom-1, bounds.Right -1, bounds.Bottom -1);
680
e.Graphics.
DrawLine
(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0);
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1736
e.Graphics.
DrawLine
(pen, clientRect.Left, clientRect.Bottom - 1, clientRect.Right - 1, clientRect.Bottom - 1);
System.Workflow.Activities (2)
Designers\StateDesigner.Layouts.cs (2)
711
graphics.
DrawLine
(designerTheme.BorderPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom);
1025
graphics.
DrawLine
(designerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom);
System.Workflow.ComponentModel (41)
AuthoringOM\Design\DesignerHelpers.cs (10)
305
graphics.
DrawLine
(lightPen, bounds.Left + 1, bounds.Bottom - 1, bounds.Left + 1, bounds.Top + 1);
306
graphics.
DrawLine
(lightPen, bounds.Left + 1, bounds.Top + 1, bounds.Right - 1, bounds.Top + 1);
307
graphics.
DrawLine
(darkPen, bounds.Left + 1, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
308
graphics.
DrawLine
(darkPen, bounds.Right - 1, bounds.Bottom - 1, bounds.Right - 1, bounds.Top + 1);
309
graphics.
DrawLine
(darkdarkPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom);
310
graphics.
DrawLine
(darkdarkPen, bounds.Right, bounds.Bottom, bounds.Right, bounds.Top);
380
graphics.
DrawLine
(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + 2, boundingRect.Top + boundingRect.Height / 2, boundingRect.Right - 2, boundingRect.Top + boundingRect.Height / 2);
382
graphics.
DrawLine
(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + boundingRect.Width / 2, boundingRect.Top + 2, boundingRect.Left + boundingRect.Width / 2, boundingRect.Bottom - 2);
583
graphics.
DrawLine
(Pens.Red, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
584
graphics.
DrawLine
(Pens.Red, bounds.Right, bounds.Top, bounds.Left, bounds.Bottom);
AuthoringOM\Design\DesignerWidgets.cs (17)
1619
e.Graphics.
DrawLine
(SystemPens.ControlLightLight, 0, 0, 0, this.splitter.Height);
1620
e.Graphics.
DrawLine
(SystemPens.ControlLightLight, 0, 0, SplitterSize - 1, 0);
1622
e.Graphics.
DrawLine
(SystemPens.ControlDark, SplitterSize - 2, 0, SplitterSize - 2, this.splitter.Height - 1);
1623
e.Graphics.
DrawLine
(SystemPens.ControlDark, SplitterSize - 2, this.splitter.Height - 1, 0, this.splitter.Height - 1);
1625
e.Graphics.
DrawLine
(SystemPens.ControlText, SplitterSize - 1, 0, SplitterSize - 1, this.splitter.Height);
1629
e.Graphics.
DrawLine
(SystemPens.ControlLightLight, 0, 1, this.splitter.Width, 1);
1630
e.Graphics.
DrawLine
(SystemPens.ControlLightLight, 0, 1, 0, SplitterSize - 1);
1632
e.Graphics.
DrawLine
(SystemPens.ControlDark, 0, SplitterSize - 2, this.splitter.Width, SplitterSize - 2);
1633
e.Graphics.
DrawLine
(SystemPens.ControlDark, this.splitter.Width - 1, SplitterSize - 2, this.splitter.Width - 1, 1);
1635
e.Graphics.
DrawLine
(SystemPens.ControlText, 0, SplitterSize - 1, this.splitter.Width, SplitterSize - 1);
2759
graphics.
DrawLine
(ambientTheme.DropIndicatorPen, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Top, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Bottom);
3430
graphics.
DrawLine
(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom);
3431
graphics.
DrawLine
(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top);
3432
graphics.
DrawLine
(SystemPens.ControlLight, canvasRect.Right, canvasRect.Top, canvasRect.Right, canvasRect.Bottom);
3433
graphics.
DrawLine
(SystemPens.ControlLight, canvasRect.Left, canvasRect.Bottom, canvasRect.Right, canvasRect.Bottom);
3435
graphics.
DrawLine
(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom);
3436
graphics.
DrawLine
(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (4)
558
e.Graphics.
DrawLine
(framePen, this.designerPreview.Left - margin.Width, this.designerPreview.Top - 1, this.designerPreview.Right + margin.Width, this.designerPreview.Top - 1);
559
e.Graphics.
DrawLine
(framePen, this.designerPreview.Left - margin.Width, this.designerPreview.Bottom + 1, this.designerPreview.Right + margin.Width, this.designerPreview.Bottom + 1);
560
e.Graphics.
DrawLine
(framePen, this.designerPreview.Left - 1, this.designerPreview.Top - margin.Height, this.designerPreview.Left - 1, this.designerPreview.Bottom + margin.Height);
561
e.Graphics.
DrawLine
(framePen, this.designerPreview.Right + 1, this.designerPreview.Top - margin.Height, this.designerPreview.Right + 1, this.designerPreview.Bottom + margin.Height);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (8)
510
paintArgs.Graphics.
DrawLine
(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom);
511
paintArgs.Graphics.
DrawLine
(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1);
515
paintArgs.Graphics.
DrawLine
(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom);
516
paintArgs.Graphics.
DrawLine
(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1);
519
paintArgs.Graphics.
DrawLine
(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom);
520
paintArgs.Graphics.
DrawLine
(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Bottom);
521
paintArgs.Graphics.
DrawLine
(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Top - 1);
522
paintArgs.Graphics.
DrawLine
(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
389
e.Graphics.
DrawLine
(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom);
476
e.Graphics.
DrawLine
(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Top);