41 instantiations of CreatePenScope
System.Windows.Forms (40)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
195using CreatePenScope penTopLeft = new( 204using CreatePenScope penBottomRight = new( 214using CreatePenScope insetPen = new( 229using CreatePenScope bottomRightInsetPen = new( 250using CreatePenScope shadowPen = new(colors.ButtonShadowDark); 255using CreatePenScope highlightPen = new(colors.Highlight); 262using CreatePenScope facePen = new(colors.ButtonFace); 274using CreatePenScope insetPen = new( 298using CreatePenScope topLeftPen = new( 307using CreatePenScope bottomRightPen = new( 322using CreatePenScope topLeftInsetPen = new( 332using CreatePenScope bottomRightInsetPen = new( 357using CreatePenScope topLeftPen = new(up ? colors.Highlight : color); 363using CreatePenScope bottomRightPen = new(up ? color : colors.Highlight); 411using CreatePenScope focusPen = new(color); 505using 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)
595using CreatePenScope hpen = new(boxColor); 620using CreatePenScope hpenLight = new(ControlPaint.Light(backColor, 1.0f)); 622using 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)
635using CreatePenScope hpen = new(backColor); 657using CreatePenScope hpen = new(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
443using CreatePenScope hpen = new(color);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
751using CreatePenScope hpen = new(topColor); 785using CreatePenScope hpen = new( 810using CreatePenScope hpen = new(leftColor); 844using CreatePenScope hpen = new( 869using CreatePenScope hpen = new(bottomColor); 913using CreatePenScope hpen = new( 943using CreatePenScope hpen = new(rightColor); 987using CreatePenScope hpen = new( 1204using CreatePenScope hpen = new(color); 1987using CreatePenScope hpenBright = new(LightLight(backColor)); 1988using CreatePenScope hpenDark = new(Dark(backColor));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
438using CreatePenScope pen = new(backColor, 2);
43 references to CreatePenScope
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)
195using CreatePenScope penTopLeft = new( 204using CreatePenScope penBottomRight = new( 214using CreatePenScope insetPen = new( 229using CreatePenScope bottomRightInsetPen = new( 250using CreatePenScope shadowPen = new(colors.ButtonShadowDark); 255using CreatePenScope highlightPen = new(colors.Highlight); 262using CreatePenScope facePen = new(colors.ButtonFace); 274using CreatePenScope insetPen = new( 298using CreatePenScope topLeftPen = new( 307using CreatePenScope bottomRightPen = new( 322using CreatePenScope topLeftInsetPen = new( 332using CreatePenScope bottomRightInsetPen = new( 357using CreatePenScope topLeftPen = new(up ? colors.Highlight : color); 363using CreatePenScope bottomRightPen = new(up ? color : colors.Highlight); 411using CreatePenScope focusPen = new(color); 505using 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)
595using CreatePenScope hpen = new(boxColor); 620using CreatePenScope hpenLight = new(ControlPaint.Light(backColor, 1.0f)); 622using 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)
635using CreatePenScope hpen = new(backColor); 657using CreatePenScope hpen = new(backColor, width);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
443using CreatePenScope hpen = new(color);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
751using CreatePenScope hpen = new(topColor); 785using CreatePenScope hpen = new( 810using CreatePenScope hpen = new(leftColor); 844using CreatePenScope hpen = new( 869using CreatePenScope hpen = new(bottomColor); 913using CreatePenScope hpen = new( 943using CreatePenScope hpen = new(rightColor); 987using CreatePenScope hpen = new( 1204using CreatePenScope hpen = new(color); 1987using CreatePenScope hpenBright = new(LightLight(backColor)); 1988using CreatePenScope hpenDark = new(Dark(backColor));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
438using CreatePenScope pen = new(backColor, 2);