44 instantiations of DeviceContextState
System.Windows.Forms.Tests (44)
NumericUpDownTests.cs (5)
36
DeviceContextState state =
new
(emf);
52
state = new
DeviceContextState
(emfButtons);
82
DeviceContextState state =
new
(emfDisabled);
115
DeviceContextState state =
new
(emf);
194
state = new
DeviceContextState
(emfButtons);
System\Windows\Forms\ButtonRenderingTests.cs (5)
40
DeviceContextState state =
new
(emf);
84
DeviceContextState state =
new
(emf);
125
DeviceContextState state =
new
(emf);
171
DeviceContextState state =
new
(emf);
234
DeviceContextState state =
new
(emf);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
27
DeviceContextState state =
new
(emf);
63
DeviceContextState state =
new
(emf);
100
DeviceContextState state =
new
(emf);
135
DeviceContextState state =
new
(emf);
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
19
DeviceContextState state =
new
(emf);
38
DeviceContextState state =
new
(emf);
98
DeviceContextState state =
new
(emf);
173
DeviceContextState state =
new
(emf);
247
DeviceContextState state =
new
(emf);
321
DeviceContextState state =
new
(emf);
349
DeviceContextState state =
new
(emf);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
33
DeviceContextState state =
new
(emf);
165
DeviceContextState state =
new
(emf);
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (1)
34
DeviceContextState state =
new
(emf);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
25
DeviceContextState state =
new
(emf);
56
DeviceContextState state =
new
(emf);
93
DeviceContextState state =
new
(emf);
121
DeviceContextState state =
new
(emf);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
32
DeviceContextState state =
new
(emf);
System\Windows\Forms\TextBoxRendererTests.cs (3)
35
DeviceContextState state =
new
(emf);
64
DeviceContextState state =
new
(emf);
99
DeviceContextState state =
new
(emf);
System\Windows\Forms\TextRendererTests.cs (4)
576
DeviceContextState state =
new
(emf);
674
DeviceContextState state =
new
(emf);
697
DeviceContextState state =
new
(emf);
752
DeviceContextState state =
new
(hdc);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
27
DeviceContextState state =
new
(emf);
52
DeviceContextState state =
new
(emf);
77
DeviceContextState state =
new
(emf);
103
DeviceContextState state =
new
(emf);
129
DeviceContextState state =
new
(emf);
156
DeviceContextState state =
new
(emf);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
29
DeviceContextState state =
new
(emf);
TextBoxTests.Rendering.cs (1)
32
DeviceContextState state =
new
(emf);
80 references to DeviceContextState
System.Windows.Forms.Primitives.TestUtilities (38)
Metafiles\EmfRecord.cs (1)
163
public string ToString(
DeviceContextState
state) => Type switch
Metafiles\EmfScope.cs (3)
109
public unsafe void EnumerateWithState(ProcessRecordWithStateDelegate enumerator,
DeviceContextState
state)
220
public string RecordsToStringWithState(
DeviceContextState
state)
223
EnumerateWithState((ref EmfRecord record,
DeviceContextState
state) =>
Metafiles\ProcessRecordWithStateDelegate.cs (1)
8
internal delegate bool ProcessRecordWithStateDelegate(ref EmfRecord record,
DeviceContextState
state);
Metafiles\RecordTypes\EMRPOLY16.cs (1)
44
public string ToString(
DeviceContextState
state)
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (1)
36
public string ToString(
DeviceContextState
? state)
Metafiles\Validators\ActionValidator.cs (1)
31
public void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\BackgroundModeValidator.cs (1)
12
public void Validate(
DeviceContextState
state) => Assert.Equal(_backgroundMode, state.BackgroundMode);
Metafiles\Validators\BitBltValidator.cs (1)
25
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\BrushColorValidator.cs (1)
14
public void Validate(
DeviceContextState
state) => Assert.Equal((COLORREF)_brushColor, state.SelectedBrush.lbColor);
Metafiles\Validators\BrushStyleValidator.cs (1)
12
public void Validate(
DeviceContextState
state) => Assert.Equal(_brushStyle, state.SelectedBrush.lbStyle);
Metafiles\Validators\BrushValidator.cs (1)
21
public void Validate(
DeviceContextState
state)
Metafiles\Validators\ClippingValidator.cs (1)
13
public void Validate(
DeviceContextState
state)
Metafiles\Validators\EmfValidator.cs (2)
14
DeviceContextState
state,
23
emf.EnumerateWithState((ref EmfRecord record,
DeviceContextState
state) =>
Metafiles\Validators\FontFaceNameValidator.cs (1)
15
public void Validate(
DeviceContextState
state) => Assert.Equal(_fontFaceName, state.SelectedFont.FaceName.ToString());
Metafiles\Validators\IEmfValidator.cs (1)
24
void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete);
Metafiles\Validators\IStateValidator.cs (1)
10
void Validate(
DeviceContextState
state);
Metafiles\Validators\LineToValidator.cs (1)
29
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\PenColorValidator.cs (1)
14
public void Validate(
DeviceContextState
state) => Assert.Equal((COLORREF)_penColor, state.SelectedPen.elpColor);
Metafiles\Validators\PenStyleValidator.cs (1)
12
public void Validate(
DeviceContextState
state) => Assert.Equal(_penStyle, state.SelectedPen.elpPenStyle);
Metafiles\Validators\PenValidator.cs (1)
23
public void Validate(
DeviceContextState
state)
Metafiles\Validators\PenWidthValidator.cs (1)
12
public void Validate(
DeviceContextState
state) => Assert.Equal(_penWidth, (int)state.SelectedPen.elpWidth);
Metafiles\Validators\Polygon16Validator.cs (1)
25
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\Polyline16Validator.cs (1)
25
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\PolyPolygon16Validator.cs (1)
23
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\PolyPolyline16Validator.cs (1)
23
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\RectangleValidator.cs (1)
25
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\RepeatValidator.cs (1)
21
public void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\Rop2Validator.cs (1)
12
public void Validate(
DeviceContextState
state) => Assert.Equal(_rop2Mode, state.Rop2Mode);
Metafiles\Validators\SkipAllValidator.cs (1)
14
public void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\SkipToValidator.cs (1)
16
public void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\SkipTypesValidator.cs (1)
16
public void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete) => complete = true;
Metafiles\Validators\StateValidator.cs (1)
17
public virtual void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\TextColorValidator.cs (1)
14
public void Validate(
DeviceContextState
state) => Assert.Equal((COLORREF)_textColor, state.TextColor);
Metafiles\Validators\TextOutValidator.cs (1)
29
public override unsafe void Validate(ref EmfRecord record,
DeviceContextState
state, out bool complete)
Metafiles\Validators\TransformValidator.cs (1)
14
public void Validate(
DeviceContextState
state) => Assert.Equal(_transform, state.Transform);
System.Windows.Forms.Tests (42)
NumericUpDownTests.cs (3)
36
DeviceContextState
state = new(emf);
82
DeviceContextState
state = new(emfDisabled);
115
DeviceContextState
state = new(emf);
System\Windows\Forms\ButtonRenderingTests.cs (5)
40
DeviceContextState
state = new(emf);
84
DeviceContextState
state = new(emf);
125
DeviceContextState
state = new(emf);
171
DeviceContextState
state = new(emf);
234
DeviceContextState
state = new(emf);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
27
DeviceContextState
state = new(emf);
63
DeviceContextState
state = new(emf);
100
DeviceContextState
state = new(emf);
135
DeviceContextState
state = new(emf);
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
19
DeviceContextState
state = new(emf);
38
DeviceContextState
state = new(emf);
98
DeviceContextState
state = new(emf);
173
DeviceContextState
state = new(emf);
247
DeviceContextState
state = new(emf);
321
DeviceContextState
state = new(emf);
349
DeviceContextState
state = new(emf);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
33
DeviceContextState
state = new(emf);
165
DeviceContextState
state = new(emf);
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (1)
34
DeviceContextState
state = new(emf);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
25
DeviceContextState
state = new(emf);
56
DeviceContextState
state = new(emf);
93
DeviceContextState
state = new(emf);
121
DeviceContextState
state = new(emf);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
32
DeviceContextState
state = new(emf);
System\Windows\Forms\TextBoxRendererTests.cs (3)
35
DeviceContextState
state = new(emf);
64
DeviceContextState
state = new(emf);
99
DeviceContextState
state = new(emf);
System\Windows\Forms\TextRendererTests.cs (4)
576
DeviceContextState
state = new(emf);
674
DeviceContextState
state = new(emf);
697
DeviceContextState
state = new(emf);
752
DeviceContextState
state = new(hdc);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
27
DeviceContextState
state = new(emf);
52
DeviceContextState
state = new(emf);
77
DeviceContextState
state = new(emf);
103
DeviceContextState
state = new(emf);
129
DeviceContextState
state = new(emf);
156
DeviceContextState
state = new(emf);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
29
DeviceContextState
state = new(emf);
TextBoxTests.Rendering.cs (1)
32
DeviceContextState
state = new(emf);