summaryrefslogtreecommitdiffhomepage
path: root/examples/row_heights_example.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/row_heights_example.md')
-rw-r--r--examples/row_heights_example.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/row_heights_example.md b/examples/row_heights_example.md
new file mode 100644
index 00000000..5a632cdc
--- /dev/null
+++ b/examples/row_heights_example.md
@@ -0,0 +1,24 @@
+## Description
+
+You can set the row heights
+
+## Code
+
+```ruby
+require 'axlsx'
+
+p = Axlsx::Package.new
+wb = p.workbook
+
+wb.add_worksheet(name: 'Row heights') do |sheet|
+ sheet.add_row ['This row will have a fixed height', 'It will overwite the default row height'], height: 30
+ sheet.add_row ['This row can have a different height too'], height: 10
+ sheet.add_row ['This row is the original']
+end
+
+p.serialize 'row_heights_example.xlsx'
+```
+
+## Output
+
+![Output](images/row_heights_example.png "Output")