16 references to GetContentBounds
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
555
s_mouseInContentBounds =
GetContentBounds
(e.RowIndex).Contains(e.X, e.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
105
public Rectangle ContentBounds =>
GetContentBounds
(RowIndex);
2927
DataGridView.CellMouseDownInContentBounds =
GetContentBounds
(e.RowIndex).Contains(e.X, e.Y);
3038
if (e.Button == MouseButtons.Left &&
GetContentBounds
(e.RowIndex).Contains(x, y))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
908
s_mouseInContentBounds =
GetContentBounds
(e.RowIndex).Contains(e.X, e.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
416
private bool LinkBoundsContainPoint(int x, int y, int rowIndex) =>
GetContentBounds
(rowIndex).Contains(x, y);
System.Windows.Forms.Tests (10)
System\Windows\Forms\DataGridViewCellTests.cs (7)
91
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(0));
3580
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(rowIndex));
3593
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(rowIndex));
3606
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(rowIndex));
3620
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(0));
3634
Assert.Equal(Rectangle.Empty, cell.
GetContentBounds
(0));
3651
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.
GetContentBounds
(rowIndex));
System\Windows\Forms\DataGridViewLinkCellTests.cs (3)
269
_cell.
GetContentBounds
(0).Should().Be(Rectangle.Empty);
277
Action action = () => dataGridView.Rows[0].Cells[0].
GetContentBounds
(-1);
284
_cell.
GetContentBounds
(0).Should().Be(Rectangle.Empty);