DataGridViewComboBoxCell.GetContentBounds 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.

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.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle à appliquer à la cellule.

rowIndex
Int32

Index de la ligne parente de la cellule.

Retours

Rectangle

Rectangle qui englobe le contenu de la cellule.

S’applique à

Voir aussi