21 references to new
System.Windows.Forms (21)
System\Windows\Forms\Control.cs (2)
9020using GraphicsStateScope saveState = new(g); 9051using GraphicsStateScope saveState = new(newArgs.Graphics);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1245using GraphicsStateScope scope = new(pevent.Graphics);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeRendererBase.cs (1)
122using (new GraphicsStateScope(graphics))
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
126using GraphicsStateScope graphicsStateScope = new(graphics);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
605using GraphicsStateScope scope = new(pevent.Graphics);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
391using GraphicsStateScope scope = new(pevent.Graphics);
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (2)
75using GraphicsStateScope state = new(graphics); 381using GraphicsStateScope state = new(graphics);
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (3)
182using GraphicsStateScope state = new(e.Graphics); 356using GraphicsStateScope imageState = new(e.Graphics); 361using (GraphicsStateScope state = new(e.Graphics))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
1033using GraphicsStateScope graphicsScope = new(g); 1123using GraphicsStateScope graphicsScope = new(g); 1168using (GraphicsStateScope backgroundPaintScope = new(e.Graphics)) 1174using GraphicsStateScope imagePaintScope = new(e.Graphics);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1100using GraphicsStateScope graphicsState = new(graphics);
System\Windows\Forms\ParentBackgroundRenderer.cs (2)
20using GraphicsStateScope state = new(graphics); 78using GraphicsStateScope state = new(graphics);
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
110using GraphicsStateScope state = new(graphics);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
422using GraphicsStateScope state = new(graphics);