Set Number of rows

I am using lay.wrappingColumn = parseFloat(wrappingColumn, 100); to set number of columns in a diagram
But I am having hard time setting number of rows.
Suppose I have 10 rows but I want to change it to just 2 rows then what should I use.

I will appreciate if someone can help on this

You cannot set the number of rows, only set the allowed width (which affects the number of rows), using wrappingWidth.

Try setting wrappingWidth to a large number.

I will give it a try
Thanks @simon