Language

ControlPaint.DrawGrid(Graphics, Rectangle, Size, Color) メソッド

定義

指定した間隔を持つ 1 ピクセルのドットのグリッドを、指定した境界内、指定したグラフィックス サーフェイス、および指定した色で描画します。

public:
 static void DrawGrid(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle area, System::Drawing::Size pixelsBetweenDots, System::Drawing::Color backColor);
public static void DrawGrid(System.Drawing.Graphics graphics, System.Drawing.Rectangle area, System.Drawing.Size pixelsBetweenDots, System.Drawing.Color backColor);
static member DrawGrid : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Size * System.Drawing.Color -> unit
Public Shared Sub DrawGrid (graphics As Graphics, area As Rectangle, pixelsBetweenDots As Size, backColor As Color)

パラメーター

graphics
Graphics

描画する Graphics 。

area
Rectangle

グリッドの寸法を表す Rectangle 。

pixelsBetweenDots
Size

グリッドのドット間の高さと幅を指定した Size 。

backColor
Color

グリッドの背後にある背景の Color 。

注釈

backColor パラメーターは、グリッドが常に背景に対して表示されるように、ドットの塗りつぶしの色を計算するために使用されます。

適用対象