41 instantiations of CreatePenScope
System.Windows.Forms (40)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
195
using CreatePenScope penTopLeft =
new
(
204
using CreatePenScope penBottomRight =
new
(
214
using CreatePenScope insetPen =
new
(
229
using CreatePenScope bottomRightInsetPen =
new
(
250
using CreatePenScope shadowPen =
new
(colors.ButtonShadowDark);
255
using CreatePenScope highlightPen =
new
(colors.Highlight);
262
using CreatePenScope facePen =
new
(colors.ButtonFace);
274
using CreatePenScope insetPen =
new
(
298
using CreatePenScope topLeftPen =
new
(
307
using CreatePenScope bottomRightPen =
new
(
322
using CreatePenScope topLeftInsetPen =
new
(
332
using CreatePenScope bottomRightInsetPen =
new
(
357
using CreatePenScope topLeftPen =
new
(up ? colors.Highlight : color);
363
using CreatePenScope bottomRightPen =
new
(up ? color : colors.Highlight);
411
using CreatePenScope focusPen =
new
(color);
505
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)
595
using CreatePenScope hpen =
new
(boxColor);
620
using CreatePenScope hpenLight =
new
(ControlPaint.Light(backColor, 1.0f));
622
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)
635
using CreatePenScope hpen =
new
(backColor);
657
using CreatePenScope hpen =
new
(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
443
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)
195
using
CreatePenScope
penTopLeft = new(
204
using
CreatePenScope
penBottomRight = new(
214
using
CreatePenScope
insetPen = new(
229
using
CreatePenScope
bottomRightInsetPen = new(
250
using
CreatePenScope
shadowPen = new(colors.ButtonShadowDark);
255
using
CreatePenScope
highlightPen = new(colors.Highlight);
262
using
CreatePenScope
facePen = new(colors.ButtonFace);
274
using
CreatePenScope
insetPen = new(
298
using
CreatePenScope
topLeftPen = new(
307
using
CreatePenScope
bottomRightPen = new(
322
using
CreatePenScope
topLeftInsetPen = new(
332
using
CreatePenScope
bottomRightInsetPen = new(
357
using
CreatePenScope
topLeftPen = new(up ? colors.Highlight : color);
363
using
CreatePenScope
bottomRightPen = new(up ? color : colors.Highlight);
411
using
CreatePenScope
focusPen = new(color);
505
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)
595
using
CreatePenScope
hpen = new(boxColor);
620
using
CreatePenScope
hpenLight = new(ControlPaint.Light(backColor, 1.0f));
622
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)
635
using
CreatePenScope
hpen = new(backColor);
657
using
CreatePenScope
hpen = new(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
443
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);