ControlPaint.DrawGrid(Graphics, Rectangle, Size, Color) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的色彩,在指定的範圍內和指定的圖形表層上繪製格線 (其指定間距為一個像素點)。
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)
參數
備註
參數 backColor
是用來計算點的填滿色彩,讓格線一律在背景上可見。