DataGridViewCell.GetErrorIconBounds(Graphics, DataGridViewCellStyle, Int32) Method

Definition

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:
 virtual System::Drawing::Rectangle GetErrorIconBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected virtual System.Drawing.Rectangle GetErrorIconBounds (System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
abstract member GetErrorIconBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
override this.GetErrorIconBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overridable Function GetErrorIconBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle

Parameters

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.

Returns

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.

Remarks

La taille de la zone d’icône d’erreur de la cellule est calculée dynamiquement lorsque cette méthode est appelée.The size of the cell's error icon area is computed dynamically when this method is called. L’implémentation de la classe de base retourne toujours Rectangle.Empty.The base class implementation always returns Rectangle.Empty.

Cette méthode est appelée en interne lorsque la propriété ErrorIconBounds est lue.This method is called internally when the ErrorIconBounds property is read.

Applies to

See also