In my diagrams I frequently have need to draw a rectangle and then divide up the interior with horizontal or vertical lines (sometimes both). Some times equally spaced sometimes not. I can do this manually just by drawing lines, but getting them perpendicular to and exactly touch the rectangle boundary is time consuming and error prone.
Is there some way to do this more easily?