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