Select all the notes and drag out one of them.
When you say a length of 10 ? I have no idea what you mean, you mean ticks ? 10 ticks ?
You can also use Quantize. Select all notes, press Q to bring up the quantize menu. Select the box that says note value/length. Then set a length. Click OK.