DataGridViewCell.GetErrorIconBounds Yöntem

Tanım

Görüntülenirse hücrenin hata simgesini çevreleyen sınırlayıcı dikdörtgeni döndürür.

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

Parametreler

graphics
Graphics

Hücrenin grafik bağlamı.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle Hücreye uygulanacak olan.

rowIndex
Int32

Hücrenin üst satırının dizini.

Döndürülenler

Hücrenin Rectangle hata simgesini sınırlayan, görüntülenirse, aksi takdirde , Empty.

Açıklamalar

Bu yöntem çağrıldığında hücrenin hata simgesi alanının boyutu dinamik olarak hesaplanır. Temel sınıf uygulaması her zaman döndürür Rectangle.Empty.

Özellik okunduğunda ErrorIconBounds bu yöntem dahili olarak çağrılır.

Şunlara uygulanır

Ayrıca bkz.