DataGridViewRowPostPaintEventArgs.PaintCellsBackground メソッド

定義

指定した境界内の領域のセルの背景を塗りつぶします。

public:
 void PaintCellsBackground(System::Drawing::Rectangle clipBounds, bool cellsPaintSelectionBackground);
public void PaintCellsBackground(System.Drawing.Rectangle clipBounds, bool cellsPaintSelectionBackground);
member this.PaintCellsBackground : System.Drawing.Rectangle * bool -> unit
Public Sub PaintCellsBackground (clipBounds As Rectangle, cellsPaintSelectionBackground As Boolean)

パラメーター

clipBounds
Rectangle

塗りつぶすRectangleの領域を指定するDataGridView

cellsPaintSelectionBackground
Boolean

true指定した境界の背景をSelectionBackColorInheritedStyleプロパティの色で塗りつぶす場合はfalse。指定した境界の背景をBackColorInheritedStyleプロパティの色で塗りつぶします。

例外

RowIndex が 0 未満か、 DataGridView コントロールの行数から 1 を引いた数を超える値です。

適用対象

こちらもご覧ください