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