Draw straight lines or measure with the ruler in OneNote for Windows 10

If you’re using OneNote for Windows 10 on touch device, 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.

https://support.microsoft.com/en-us/office/draw-straight-lines-or-measure-with-the-ruler-in-onenote-for-windows-10-a50537fe-c097-4786-be47-a501c33b4bbb