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)
5015using DeviceContextHdcScope hDc = new(g, applyGraphicsState: false); 5026using DeviceContextHdcScope desthDC = new(destGraphics, applyGraphicsState: false); 7188using DeviceContextHdcScope hdc = new(e); 8221using DeviceContextHdcScope hdc = new(e); 8275using DeviceContextHdcScope hdcNoParent = new(e); 8316using 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)
104using 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)
1360using DeviceContextHdcScope hdc = new(offscreen);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
498using DeviceContextHdcScope hdc = new(e); 565using DeviceContextHdcScope hdc = new(e); 590using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1260using (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)
617using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
142using (DeviceContextHdcScope hdc = new(pevent))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1690using 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)
538using DeviceContextHdcScope hdc = new(e); 571using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
318using DeviceContextHdcScope hdc = new(e); 354using DeviceContextHdcScope hdc = new(e);
System\Windows\Forms\Form.cs (1)
4448using 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)
1078using DeviceContextHdcScope hdc = new(graphics); 1403using DeviceContextHdcScope dc = new(g2, applyGraphicsState: false); 1473using (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);