41 instantiations of CreatePenScope
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)
566
using CreatePenScope hpen =
new
(boxColor);
591
using CreatePenScope hpenLight =
new
(ControlPaint.Light(backColor, 1.0f));
593
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)
550
using CreatePenScope hpen =
new
(backColor);
572
using CreatePenScope hpen =
new
(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
355
using CreatePenScope hpen =
new
(color);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
751
using CreatePenScope hpen =
new
(topColor);
785
using CreatePenScope hpen =
new
(
810
using CreatePenScope hpen =
new
(leftColor);
844
using CreatePenScope hpen =
new
(
869
using CreatePenScope hpen =
new
(bottomColor);
913
using CreatePenScope hpen =
new
(
943
using CreatePenScope hpen =
new
(rightColor);
987
using CreatePenScope hpen =
new
(
1204
using CreatePenScope hpen =
new
(color);
1987
using CreatePenScope hpenBright =
new
(LightLight(backColor));
1988
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);
43 references to CreatePenScope
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (2)
32
public static implicit operator HPEN(in
CreatePenScope
scope) => scope.HPEN;
33
public static unsafe implicit operator HGDIOBJ(in
CreatePenScope
scope) => scope.HPEN;
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)
566
using
CreatePenScope
hpen = new(boxColor);
591
using
CreatePenScope
hpenLight = new(ControlPaint.Light(backColor, 1.0f));
593
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)
550
using
CreatePenScope
hpen = new(backColor);
572
using
CreatePenScope
hpen = new(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
355
using
CreatePenScope
hpen = new(color);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
751
using
CreatePenScope
hpen = new(topColor);
785
using
CreatePenScope
hpen = new(
810
using
CreatePenScope
hpen = new(leftColor);
844
using
CreatePenScope
hpen = new(
869
using
CreatePenScope
hpen = new(bottomColor);
913
using
CreatePenScope
hpen = new(
943
using
CreatePenScope
hpen = new(rightColor);
987
using
CreatePenScope
hpen = new(
1204
using
CreatePenScope
hpen = new(color);
1987
using
CreatePenScope
hpenBright = new(LightLight(backColor));
1988
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);