Hi,
To insert a row at say row 10, you would use something like
xls.InsertAndCopyRange(TXlsCellRange.Create(1, 1, 1, 1), 10, 1, 1, TFlxInsertMode.ShiftRowDown, TRangeCopyMode.None);
InsertAndCopyRange is a really overloaded and powerful method.
The name InsertAndCopyRange maybe it isn't 100% descriptive, but this method can Insert, Copy or InsertAndCopy ranges of cells, rows or columns, from a sheet to the same sheet, to another sheet or to another file. The name is like this because it is one of the "founding methods" of FlexCel: When I created the first version of FlexCel like a hundred years ago, it was all about FlexCelReports. There wasn't even a public API to create files by hand, it was all done with templates and replacing tags from datasets. And to do the reports, I needed to InsertAndCopyRows in the template to fill them with values.
But over the years, instead of having a thousand methods to manipulate cells: InsertRows, CopyRows, InsertAndCopyRows, CopyColumns, etc, I preferred to keep everything in InsertAndCopyRange. So to manipulate stuff, there aren't a hundred methods but just 5:
InsertAndCopyRange
DeleteRange
MoveRange
InsertAndCopySheets
DeleteSheet
Just rememebring those methods you should be able to do most stuff. And most of it is with InsertAndCopyRange, which as said is one of the fundamental methods in FlexCel.
About moving or copying row heights, this depends in if you copy or move the full row or not. If you are moving a range of cells say from column A to D, then the row height won't move, because you can't move the row height for the columns A to D. But if you are moving or copying the full row (using TFlxInsertMode.ShiftRowDown or selecting the full range of columns), then it should move or copy the row heights too.
A final note: TFlxInsertMode.ShiftRowDown is the same as selecting the full range of columns. But it is easier to just use a single cell range and tell FlexCel to use the full row, than to use a range which goes from column 1 to the last column in excel (which is also different for xls than for xlsx)