DataGridViewRowHeaderCell.GetErrorIconBounds Metoda

Definicja

Zwraca prostokąt ograniczenia, który otacza ikonę błędu komórki, jeśli jest wyświetlany.

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

Parametry

graphics
Graphics

Kontekst graficzny komórki.

cellStyle
DataGridViewCellStyle

Element DataGridViewCellStyle do zastosowania do komórki.

rowIndex
Int32

Indeks wiersza nadrzędnego komórki.

Zwraca

ElementRectangle, który wiąże ikonę błędu komórki, jeśli jest wyświetlany; w przeciwnym razie . Empty

Dotyczy

Zobacz też