DataGridViewRowHeaderCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32) Méthode

Définition

Retourne le rectangle englobant qui définit la zone de contenu de la cellule, qui est calculée à l’aide du Graphics et du style de cellule spécifiés.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
Protected Overrides Function GetContentBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle

Paramètres

graphics
Graphics

Contexte graphique pour la cellule.The graphics context for the cell.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle à appliquer à la cellule.The DataGridViewCellStyle to be applied to the cell.

rowIndex
Int32

Index de la ligne parente de la cellule.The index of the cell's parent row.

Retours

Rectangle

Rectangle qui englobe le contenu de la cellule.The Rectangle that bounds the cell's contents.

S’applique à

Voir aussi