DataGridViewCheckBoxCell.GetContentBounds Método

Definição

Devolve o retângulo delimitador que envolve a área de conteúdo da célula, que é calculado usando o estilo especificado Graphics e a célula.

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

Parâmetros

graphics
Graphics

O contexto gráfico da célula.

cellStyle
DataGridViewCellStyle

O DataGridViewCellStyle a ser aplicado à célula.

rowIndex
Int32

O índice da linha mãe da célula.

Devoluções

O Rectangle que limita o conteúdo da cela.

Aplica-se a