DataGridViewCell.PaintErrorIcon 메서드

정의

현재 DataGridViewCell의 오류 아이콘을 그립니다.

protected:
 virtual void PaintErrorIcon(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellValueBounds, System::String ^ errorText);
protected virtual void PaintErrorIcon (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellValueBounds, string errorText);
protected virtual void PaintErrorIcon (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellValueBounds, string? errorText);
abstract member PaintErrorIcon : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * string -> unit
override this.PaintErrorIcon : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * string -> unit
Protected Overridable Sub PaintErrorIcon (graphics As Graphics, clipBounds As Rectangle, cellValueBounds As Rectangle, errorText As String)

매개 변수

graphics
Graphics

테두리를 그리는 데 사용되는 Graphics입니다.

clipBounds
Rectangle

다시 그려야 하는 DataGridView의 영역을 나타내는 Rectangle입니다.

cellValueBounds
Rectangle

셀의 내용 영역을 둘러싸는 경계 Rectangle입니다.

errorText
String

셀과 연결된 오류 메시지입니다.

설명

매개 변수는 errorText 오류의 존재를 알릴 수 있습니다. 가 null 또는 String.Empty이면 errorText 메서드는 PaintErrorIcon 아무 것도 수행하지 않습니다.

적용 대상

추가 정보