I don't exactly know the code, but I have an idea. You'd have to fool around with the Line's properties X1, X2, Y1, Y2. I think X1 and Y1 will be used though.