DataGridViewLinkCell.GetErrorIconBounds(Graphics, DataGridViewCellStyle, Int32) Méthode

Définition

Retourne le rectangle qui englobe l'icône d'erreur de la cellule, si affichée.Returns the bounding rectangle that encloses the cell's error icon, if one is displayed.

protected:
 override System::Drawing::Rectangle GetErrorIconBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected override System.Drawing.Rectangle GetErrorIconBounds (System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
override this.GetErrorIconBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overrides Function GetErrorIconBounds (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 lie l’icône d’erreur de la cellule, si une icône est affichée ; sinon, Empty.The Rectangle that bounds the cell's error icon, if one is displayed; otherwise, Empty.

S’applique à

Voir aussi