Is there a way to lock the axis for expanding/minimising/stretching a selected area

Many thanks for the reply