I may be completely missing the point here, but presumably the new Point(X,Y)
lines there are the coordinates of the line?
That being the case, surely what you want is something like ...
e.Graphics.DrawLine(new Pen(Color.Gray, 1), new Point(22, 10), new Point(22, 1100));
where you keep the X position the same in both points but change the Y?