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