Copy Row Heights of Source Range to Destination Range with Golang via C++
Contents
[
Hide
]
Sometimes, users need to copy row heights from a source range to a destination range. Aspose.Cells provides the PasteType::RowHeights enum for this purpose. When you set the GetPasteType() property with the PasteType::RowHeights enum, the heights of all rows inside the source range will be copied to the destination range.
The following sample code explains how to use the PasteType::RowHeights enum to copy row heights from a source range into a destination range. Once you open the output Excel file generated by this code in Microsoft Excel, you will see that the destination range row heights are exactly the same as the source range row heights.