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