DataGridViewImageCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32) DataGridViewImageCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32) DataGridViewImageCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32) Method

Definición

Devuelve el rectángulo delimitador que rodea el área de contenido de la celda, que se calcula mediante el objeto Graphics especificado y el estilo de celda.Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified Graphics and cell style.

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

Parámetros

graphics
Graphics Graphics Graphics

Contexto gráfico de la celda.The graphics context for the cell.

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

DataGridViewCellStyle que se va a aplicar a la celda.The DataGridViewCellStyle to be applied to the cell.

rowIndex
Int32 Int32 Int32

Índice de la fila primaria de la celda.The index of the cell's parent row.

Devoluciones

Rectangle que limita el contenido de la celda.The Rectangle that bounds the cell's contents.

Se aplica a

Consulte también: