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 매개 변수는 눈금이 항상 배경에 표시되도록 점의 채우기 색을 계산하는 데 사용됩니다.

적용 대상