On Windows touch devices, you can use the Ruler on the Draw tab of the Ribbon to draw straight lines or to measure distance. The ruler pivots to any position you want: horizontal, vertical, or any angle in between. It has a degrees setting so that you can set it at a precise angle, if necessary. You can manipulate the ruler by using your fingers.