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 A則指定要塗裝的區域DataGridView。
- cellsPaintSelectionBackground
- Boolean
true將指定界限的背景繪成 的性質顏色;SelectionBackColor將指定界限的背景繪成 的性質顏色InheritedStylefalse。BackColorInheritedStyle