DataGridViewImageCell.GetErrorIconBounds メソッド

定義

セルのエラー アイコンが表示されている場合に、そのエラー アイコンを囲む外接する四角形を返します。

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

パラメーター

graphics
Graphics

セルのグラフィックス コンテキスト。

cellStyle
DataGridViewCellStyle

セルに適用する DataGridViewCellStyle

rowIndex
Int32

セルの親行のインデックス。

戻り値

セルのエラー アイコンが表示されている場合は、そのエラー アイコンに外接する Rectangle、それ以外の場合は Empty

適用対象

こちらもご覧ください