DataGridViewCellPaintingEventArgs.PaintBackground(Rectangle, Boolean) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した境界内の領域のセルの背景を塗りつぶします。
public:
void PaintBackground(System::Drawing::Rectangle clipBounds, bool cellsPaintSelectionBackground);
public void PaintBackground(System.Drawing.Rectangle clipBounds, bool cellsPaintSelectionBackground);
member this.PaintBackground : System.Drawing.Rectangle * bool -> unit
Public Sub PaintBackground (clipBounds As Rectangle, cellsPaintSelectionBackground As Boolean)
パラメーター
- clipBounds
- Rectangle
塗りつぶすRectangleの領域を指定するDataGridView。
- cellsPaintSelectionBackground
- Boolean
true指定した境界の背景をSelectionBackColorのInheritedStyleプロパティの色で塗りつぶす場合はfalse。指定した境界の背景をBackColorのInheritedStyleプロパティの色で塗りつぶします。
例外
RowIndex が -1 より小さいか、 DataGridView コントロールの行数以上です。
-又は-
ColumnIndex が -1 より小さいか、 DataGridView コントロール内の列の数以上です。