DataGridViewCheckBoxCell.GetContentBounds Метод

Определение

Возвращает прямоугольник, ограничивающий область содержимого ячейки, которая рассчитывается, используя указанный объект Graphics и стиль ячейки.

protected:
 override System::Drawing::Rectangle GetContentBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected override System.Drawing.Rectangle GetContentBounds (System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
override this.GetContentBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overrides Function GetContentBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle

Параметры

graphics
Graphics

Графический контекст для ячейки.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle, применяемый к ячейке.

rowIndex
Int32

Индекс родительской строки ячейки.

Возвращаемое значение

Rectangle

Прямоугольник Rectangle, ограничивающий содержимое ячейки.

Применяется к