Bagikan melalui


DataGridViewLinkCell.GetErrorIconBounds Metode

Definisi

Mengembalikan persegi panjang pembatas yang mengapit ikon kesalahan sel, jika ditampilkan.

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

Parameter

graphics
Graphics

Konteks grafik untuk sel.

cellStyle
DataGridViewCellStyle

yang DataGridViewCellStyle akan diterapkan ke sel.

rowIndex
Int32

Indeks baris induk sel.

Mengembalikan

Rectangle yang mengikat ikon kesalahan sel, jika salah satu ditampilkan; jika tidak, Empty.

Berlaku untuk

Lihat juga