There are two ways to measure the height... Sitting and Standing.
You should be fine with a 26" inseam.
1. Standover height (D) with your feet on the ground straddling the top tube = 24" minimum
2. Seat height (B)+ 6.5" with your feet on the pedals while sitting on the saddle = 16.5+6.5"=24" minimum