43 references to new
System.Drawing.Common.Tests (2)
System\Drawing\ImageTests.cs (1)
674
using CreatePenScope pen =
new
(Color.Red);
System\Drawing\Imaging\MetafileTests.cs (1)
1026
using CreatePenScope pen =
new
(Color.Blue);
System.Windows.Forms (40)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
145
using CreatePenScope penTopLeft =
new
(
154
using CreatePenScope penBottomRight =
new
(
164
using CreatePenScope insetPen =
new
(
179
using CreatePenScope bottomRightInsetPen =
new
(
200
using CreatePenScope shadowPen =
new
(colors.ButtonShadowDark);
205
using CreatePenScope highlightPen =
new
(colors.Highlight);
212
using CreatePenScope facePen =
new
(colors.ButtonFace);
224
using CreatePenScope insetPen =
new
(
248
using CreatePenScope topLeftPen =
new
(
257
using CreatePenScope bottomRightPen =
new
(
272
using CreatePenScope topLeftInsetPen =
new
(
282
using CreatePenScope bottomRightInsetPen =
new
(
307
using CreatePenScope topLeftPen =
new
(up ? colors.Highlight : color);
313
using CreatePenScope bottomRightPen =
new
(up ? color : colors.Highlight);
361
using CreatePenScope focusPen =
new
(color);
445
using CreatePenScope hpen =
new
(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
49
using CreatePenScope hpen =
new
(checkBorder);
215
using CreatePenScope high =
new
(colors.Highlight);
216
using CreatePenScope shadow =
new
(colors.ButtonShadow);
217
using CreatePenScope face =
new
(colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
78
using CreatePenScope borderPen =
new
(border);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
567
using CreatePenScope hpen =
new
(boxColor);
592
using CreatePenScope hpenLight =
new
(ControlPaint.Light(backColor, 1.0f));
594
using CreatePenScope hpenDark =
new
(ControlPaint.Dark(backColor, 0f));
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
328
using CreatePenScope hpenDark =
new
(SystemColors.ControlDark);
340
using CreatePenScope hpenLight =
new
(SystemColors.ControlLight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
548
using CreatePenScope hpen =
new
(backColor);
570
using CreatePenScope hpen =
new
(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
324
using CreatePenScope hpen =
new
(color);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
716
using CreatePenScope hpen =
new
(topColor);
750
using CreatePenScope hpen =
new
(
775
using CreatePenScope hpen =
new
(leftColor);
809
using CreatePenScope hpen =
new
(
834
using CreatePenScope hpen =
new
(bottomColor);
878
using CreatePenScope hpen =
new
(
908
using CreatePenScope hpen =
new
(rightColor);
952
using CreatePenScope hpen =
new
(
1169
using CreatePenScope hpen =
new
(color);
1923
using CreatePenScope hpenBright =
new
(LightLight(backColor));
1924
using CreatePenScope hpenDark =
new
(Dark(backColor));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
438
using CreatePenScope pen =
new
(backColor, 2);