DataGridViewCell.GetErrorIconBounds Metoda

Definice

Vrátí ohraničující obdélník, který ohraničuje ikonu chyby buňky, pokud se zobrazí.

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

Parametry

graphics
Graphics

Grafický kontext buňky.

cellStyle
DataGridViewCellStyle

Hodnota DataGridViewCellStyle , která se má použít na buňku.

rowIndex
Int32

Index nadřazeného řádku buňky.

Návraty

Ikona Rectangle chyby ohraničená buňkou, pokud se zobrazí; v opačném případě Empty.

Poznámky

Velikost oblasti chybové ikony buňky se vypočítá dynamicky při zavolání této metody. Implementace základní třídy vždy vrátí Rectangle.Empty.

Tato metoda je volána interně při ErrorIconBounds čtení vlastnosti.

Platí pro

Viz také