152 references to State
System.Windows.Forms.Tests (152)
NumericUpDownTests.cs (5)
47State.Pen(2, upDown.BackColor, PEN_STYLE.PS_SOLID))); 62State.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID))); 89State.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID)), 92State.Pen(1, SystemColors.Control, PEN_STYLE.PS_SOLID)), 97State.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID)));
System\Windows\Forms\ButtonRenderingTests.cs (20)
50State.PenColor(SystemColors.ControlLightLight)), 53State.PenColor(SystemColors.ControlLightLight)), 56State.PenColor(SystemColors.ControlDarkDark)), 59State.PenColor(SystemColors.ControlDarkDark)), 62State.PenColor(SystemColors.Control)), 65State.PenColor(SystemColors.Control)), 68State.PenColor(SystemColors.ControlDark)), 71State.PenColor(SystemColors.ControlDark))); 136State.PenColor(SystemColors.ControlLightLight)), 139State.PenColor(SystemColors.ControlLightLight)), 142State.PenColor(SystemColors.ControlDarkDark)), 145State.PenColor(SystemColors.ControlDarkDark)), 148State.PenColor(SystemColors.Control)), 151State.PenColor(SystemColors.Control)), 154State.PenColor(SystemColors.ControlDark)), 157State.PenColor(SystemColors.ControlDark))); 245State.PenColor(Color.Black), 246State.PenStyle(PEN_STYLE.PS_ENDCAP_ROUND), 247State.BrushStyle(BRUSH_STYLE.BS_NULL), // Regressed in https://github.com/dotnet/winforms/pull/3667 248State.Rop2(R2_MODE.R2_COPYPEN)));
System\Windows\Forms\CheckBoxRendererTests.cs (3)
80State.FontFace(SystemFonts.DefaultFont.Name) 117State.FontFace(SystemFonts.DefaultFont.Name) 151State.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\ControlPaintTests.Rendering.cs (67)
31State.Pen(1, Color.Blue, PEN_STYLE.PS_SOLID))); 60State.Pen(16, ControlPaint.DarkDark(Color.Gray), penStyle), 61State.Transform(oneSixteenth)), 66State.Pen(16, ControlPaint.DarkDark(Color.Gray), penStyle), 67State.Transform(oneSixteenth)), 72State.Pen(16, ControlPaint.LightLight(Color.Gray), penStyle), 73State.Transform(oneSixteenth)), 78State.Pen(16, ControlPaint.LightLight(Color.Gray), penStyle), 79State.Transform(oneSixteenth)), 84State.Pen(16, ControlPaint.Light(Color.Gray), penStyle), 85State.Transform(oneSixteenth)), 90State.Pen(16, ControlPaint.Light(Color.Gray), penStyle), 91State.Transform(oneSixteenth))); 120State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 121State.Transform(oneSixteenth)), 126State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 127State.Transform(oneSixteenth)), 132State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 133State.Transform(oneSixteenth)), 138State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 139State.Transform(oneSixteenth)), 144State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 145State.Transform(oneSixteenth)), 150State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 151State.Transform(oneSixteenth)), 159State.Pen(16, SystemColors.ControlLight, penStyle), 160State.Transform(oneSixteenth)), 165State.Pen(16, SystemColors.ControlLight, penStyle), 166State.Transform(oneSixteenth))); 197State.Pen(16, ControlPaint.LightLight(Color.PeachPuff), penStyle), 198State.Transform(oneSixteenth)), 203State.Pen(16, ControlPaint.LightLight(Color.PeachPuff), penStyle), 204State.Transform(oneSixteenth)), 209State.Pen(16, ControlPaint.DarkDark(Color.PeachPuff), penStyle), 210State.Transform(oneSixteenth)), 215State.Pen(16, ControlPaint.DarkDark(Color.PeachPuff), penStyle), 216State.Transform(oneSixteenth)), 221State.Pen(16, Color.PeachPuff, penStyle), 222State.Transform(oneSixteenth)), 227State.Pen(16, Color.PeachPuff, penStyle), 228State.Transform(oneSixteenth)), 233State.Pen(16, ControlPaint.Dark(Color.PeachPuff), penStyle), 234State.Transform(oneSixteenth)), 239State.Pen(16, ControlPaint.Dark(Color.PeachPuff), penStyle), 240State.Transform(oneSixteenth))); 271State.Pen(16, SystemColors.ControlLightLight, penStyle), 272State.Transform(oneSixteenth)), 277State.Pen(16, SystemColors.ControlLightLight, penStyle), 278State.Transform(oneSixteenth)), 283State.Pen(16, SystemColors.ControlDarkDark, penStyle), 284State.Transform(oneSixteenth)), 289State.Pen(16, SystemColors.ControlDarkDark, penStyle), 290State.Transform(oneSixteenth)), 295State.Pen(16, SystemColors.Control, penStyle), 296State.Transform(oneSixteenth)), 301State.Pen(16, SystemColors.Control, penStyle), 302State.Transform(oneSixteenth)), 307State.Pen(16, SystemColors.ControlDark, penStyle), 308State.Transform(oneSixteenth)), 313State.Pen(16, SystemColors.ControlDark, penStyle), 314State.Transform(oneSixteenth))); 340State.Transform(oneSixteenth), 341State.Pen(16, Color.Green, penStyle), 342State.Brush(Color.Green, BRUSH_STYLE.BS_SOLID))); 368State.Transform(oneSixteenth), 369State.Pen(16, Color.Pink, penStyle), 370State.Brush(Color.Pink, BRUSH_STYLE.BS_SOLID)));
System\Windows\Forms\DataGridViewTests.Rendering.cs (28)
58State.Pen(1, Color.Empty, PEN_STYLE.PS_NULL), 59State.Brush(SystemColors.ButtonShadow, BRUSH_STYLE.BS_SOLID), 60State.Transform(oneSixteenth)), 65State.Pen(16, Color.Blue, penStyle), 66State.Transform(oneSixteenth)), 71State.Pen(16, Color.Blue, penStyle), 72State.Transform(oneSixteenth)), 77State.Pen(16, Color.Blue, penStyle), 78State.Transform(oneSixteenth)), 83State.Pen(16, Color.Blue, penStyle), 84State.Transform(oneSixteenth)), 89State.Pen(1, Color.Empty, PEN_STYLE.PS_NULL), 90State.Brush(SystemColors.ButtonHighlight, BRUSH_STYLE.BS_SOLID), 91State.Transform(oneSixteenth)), 96State.Pen(16, SystemColors.Desktop, penStyle), 97State.Brush(Color.Empty, BRUSH_STYLE.BS_NULL), 98State.Transform(oneSixteenth))); 178Validate.TextOut(column1.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.Name))), 180Validate.TextOut(column2.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.Name))), 184Validate.TextOut("Row 1", stateValidators: State.FontFace(customRowHeaderFont.Name))), 186Validate.TextOut(nameof(DataGridView.DefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.Name))), 188Validate.TextOut(customCellStyleFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))), 192Validate.TextOut("Row 2", stateValidators: State.FontFace(customRowHeaderFont.Name))), 194Validate.TextOut(nameof(DataGridView.ColumnHeadersDefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.Name))), 196Validate.TextOut(customColumnHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))), 200Validate.TextOut("Row 3", stateValidators: State.FontFace(customRowHeaderFont.Name))), 202Validate.TextOut(nameof(DataGridView.RowHeadersDefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.Name))), 204Validate.TextOut(customRowHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))),
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (5)
44Validate.TextOut("Misc", new(25, 4, 25, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 50Validate.TextOut(pt.X.ToString(), new(145, 22, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 53Validate.TextOut(nameof(Point.X), new(25, 23, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 59Validate.TextOut(pt.Y.ToString(), new(145, 41, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 62Validate.TextOut(nameof(Point.Y), new(25, 42, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))),
System\Windows\Forms\RadioButtonRendererTests.cs (2)
73State.FontFace(SystemFonts.DefaultFont.Name) 147State.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
47Validate.BitBltValidator(bitBltBounds, State.BrushColor(Color.Blue)), 48Validate.Polyline16(polylineBounds, null, State.Pen(16, Color.Green, penStyle)));
System\Windows\Forms\TextBoxRendererTests.cs (2)
81State.FontFace(SystemFonts.DefaultFont.Name) 117State.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\TextRendererTests.cs (9)
584State.FontFace(SystemFonts.DefaultFont.Name), 585State.TextColor(Color.Blue), 586State.BackgroundMode(BACKGROUND_MODE.TRANSPARENT))); 688State.FontFace(SystemFonts.DefaultFont.Name), 689State.TextColor(Color.Red))); 711State.FontFace(SystemFonts.DefaultFont.Name), 712State.TextColor(Color.Red))); 787State.FontFace(SystemFonts.DefaultFont.Name), 788State.TextColor(Color.Red)));
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (5)
62State.Brush(Color.Blue, BRUSH_STYLE.BS_SOLID))); 87State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 113State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 139State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 166State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
System\Windows\Forms\ToolStripTests.Rendering.cs (3)
51State.BrushColor(Color.Blue)), 54State.BrushColor(form.BackColor), 55State.Clipping(expectedRects)));
TextBoxTests.Rendering.cs (1)
41State.BackgroundMode(BACKGROUND_MODE.TRANSPARENT)));