52 references to DeviceContextHdcScope
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
66/// Prefer to use <see cref="DeviceContextHdcScope(IHdcContext, bool, bool)"/>.
System.Windows.Forms (45)
System\Windows\Forms\Control.cs (6)
4994using DeviceContextHdcScope hDc = new(g, applyGraphicsState: false); 5005using DeviceContextHdcScope desthDC = new(destGraphics, applyGraphicsState: false); 7167using DeviceContextHdcScope hdc = new(e); 8202using DeviceContextHdcScope hdc = new(e); 8256using DeviceContextHdcScope hdcNoParent = new(e); 8297using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
350using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
82using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (5)
47using (DeviceContextHdcScope hdc = new(e)) 70using DeviceContextHdcScope hdc = new(e); 203using DeviceContextHdcScope hdc = new(g); 209using DeviceContextHdcScope hdc = new(e); 313using DeviceContextHdcScope hdc = new(offscreen, applyGraphicsState: false);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (3)
77using DeviceContextHdcScope hdc = new(e); 146using DeviceContextHdcScope hdc = new(e); 206using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (5)
73using DeviceContextHdcScope hdc = new(graphics); 78using (DeviceContextHdcScope hdc = new(graphics)) 128using (DeviceContextHdcScope hdc = new(g)) 217using (DeviceContextHdcScope hdc = new(g)) 253using DeviceContextHdcScope hdc = new(g);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
108using DeviceContextHdcScope hdc = new(g);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
776using DeviceContextHdcScope hdc = new(g); 784using DeviceContextHdcScope hdc = new(g);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1363using DeviceContextHdcScope hdc = new(offscreen);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
499using DeviceContextHdcScope hdc = new(e); 566using DeviceContextHdcScope hdc = new(e); 591using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1262using (DeviceContextHdcScope hdc = new(e))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1130using (DeviceContextHdcScope scope = new(e, applyGraphicsState: false)) 1358using (DeviceContextHdcScope hdc = new(g, applyGraphicsState: false))
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
615using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
92using (DeviceContextHdcScope hdc = new(pevent))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1693using DeviceContextHdcScope hdc = new(g);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2653using DeviceContextHdcScope imageHdc = new(g, applyGraphicsState: false);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
536using DeviceContextHdcScope hdc = new(e); 569using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
273using DeviceContextHdcScope hdc = new(e); 323using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Form.cs (1)
4467using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Input\Cursor.cs (1)
256using DeviceContextHdcScope dc = new(graphics, applyGraphicsState: false);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1043using DeviceContextHdcScope hdc = new(graphics); 1371using DeviceContextHdcScope dc = new(g2, applyGraphicsState: false); 1441using (DeviceContextHdcScope hdc = new(g2, applyGraphicsState: false))
System\Windows\Forms\Rendering\TextRenderer.cs (1)
336using DeviceContextHdcScope graphicsHdc = new(e.GraphicsInternal, applyGraphicsState: false);
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DesignerUtils.cs (5)
248using DeviceContextHdcScope hDC = new(graphics, applyGraphicsState: false); 263using DeviceContextHdcScope hDC = new(graphics, applyGraphicsState: false); 278using DeviceContextHdcScope hDC = new(graphics, applyGraphicsState: false); 401using DeviceContextHdcScope destDC = new(gDest, applyGraphicsState: false); 530using DeviceContextHdcScope dc = new(g, applyGraphicsState: false);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
45using DeviceContextHdcScope hdcScope = new(graphics);