DataGridViewCell.GetErrorIconBounds Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает прямоугольник, ограничивающий значок ошибки ячейки, если такой отображается.
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
Параметры
- graphics
- Graphics
Графический контекст для ячейки.
- cellStyle
- DataGridViewCellStyle
DataGridViewCellStyle, применяемый к ячейке.
- rowIndex
- Int32
Индекс родительской строки ячейки.
Возвращаемое значение
Объект Rectangle, ограничивающий значок ошибки ячейки, если такой отображается; в противном случае — значение Empty.
Комментарии
Размер области значка ошибки ячейки вычисляется динамически при вызове этого метода. Реализация базового класса всегда возвращает Rectangle.Empty.
Этот метод вызывается внутренне при чтении ErrorIconBounds свойства.