18 references to None
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1498if (paintParts is < DataGridViewPaintParts.None or > DataGridViewPaintParts.All) 1691if (paintParts is < DataGridViewPaintParts.None or > DataGridViewPaintParts.All)
System.Windows.Forms.Tests (16)
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (4)
85e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None); 96Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 109Assert.Throws<InvalidOperationException>(() => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 122Assert.Throws<InvalidOperationException>(() => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None));
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (4)
114e.PaintCells(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None); 127Assert.Throws<InvalidOperationException>(() => e.PaintCells(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 186e.PaintHeader(DataGridViewPaintParts.None); 212Assert.Throws<InvalidOperationException>(() => e.PaintHeader(DataGridViewPaintParts.None));
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (5)
84[InlineData(DataGridViewPaintParts.None)] 141e.PaintCells(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None); 154Assert.Throws<InvalidOperationException>(() => e.PaintCells(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None)); 213e.PaintHeader(DataGridViewPaintParts.None); 239Assert.Throws<InvalidOperationException>(() => e.PaintHeader(DataGridViewPaintParts.None));
System\Windows\Forms\DataGridViewRowTests.cs (3)
5016yield return new object[] { new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), 0, DataGridViewElementStates.Displayed | DataGridViewElementStates.Displayed, false, true, DataGridViewPaintParts.None }; 5323[InlineData((DataGridViewPaintParts.None - 1))] 5661[InlineData((DataGridViewPaintParts.None - 1))]