You can define a line primitive when you need to edit or move a raster line entity.
You can use raster snaps to select the raster line. For more information, see Raster Snapping.