'■DrawEdge ''' <summary>でっぱった四角形を描画します。</summary> ''' <param name="g">描画に使用するGraphicsクラスを指定します。</param> ''' <param name="Point1">描画する範囲の左上を表す点</param> ''' <param name="Point2">描画する範囲の右下を表す点</param> ''' <remarks></remarks> Private Overloads Sub DrawEdge(ByVal g As Graphics, ByVal Point1 As Point, ByVal Point2 As Point) Dim Rect As Rectangle Rect.X = Point1.X Rect.Y = Point1.Y Rect.Width = Point2.X ~~~~~~~~~~~ Rect.Height = Point2.Y ~~~~~~~~~~~ Call DrawEdge(g, Rect)
With Rect .X = Point1.X .Y = Point1.Y .Width = point2.X - Point1.X .Height = point2.Y - Point1.Y End With