Hi,
The best way to move a shape is to use its Translate method. For example, to move a line shape 40 pixels down, you can use the following line of code:
// Move the line shape
lineShape.Translate(0, 40);
// Repaint the view
document.SmartRefreshAllViews();
Alternatively, you can change the StartPoint and EndPoint of the line shape.