13 references to GetContentBounds
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
555s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
105public Rectangle ContentBounds => GetContentBounds(RowIndex); 2927DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y); 3038if (e.Button == MouseButtons.Left && GetContentBounds(e.RowIndex).Contains(x, y))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
908s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.X, e.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
416private bool LinkBoundsContainPoint(int x, int y, int rowIndex) => GetContentBounds(rowIndex).Contains(x, y);
System.Windows.Forms.Tests (7)
System\Windows\Forms\DataGridViewCellTests.cs (7)
91Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 3580Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3593Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3606Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3620Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 3634Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 3651Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetContentBounds(rowIndex));