Copy Row Heights of Source Range to Destination Range
Contents
[
Hide
]
Sometime user needs to copy row heights of source range to destination range. Aspose.Cells provides PasteType.ROW_HEIGHTS enum for this purpose. When you will set PasteOptions.setPasteType() property with PasteType.ROW_HEIGHTS enum then heights of all rows inside the source range will be copied to the destination range.
Copy Row Heights of Source Range to Destination Range
The following sample code explains how to use PasteType.ROW_HEIGHTS enum to copy row heights of source range into destination range. Once you will open the output excel file generated by this code in Microsoft Excel, you will see that destination range row heights are exactly the same as source range row heights.