Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets row height and format.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Sheet.SetRow"; bookRef; sheetIndex; Row; Height { ; Format; Hidden } )   More


Parameter Description Example Flags
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
sheetIndex The index of the sheet. This number ranges from 0 to XL.Book.SheetCount-1. 0
Row The row index to set.
First row is zero.
Height The new row height measured in point size.
Zero for automatic height.
Format The format for the cell. This is index from 0 to XL.GetFormatCount-1 in the book's list of formats. 0 Optional
Hidden Whether to hide columns. 0 Optional


Returns OK or error message.


Sets row height and format.
Row may be hidden.
Height is in points. If you want to convert from pixels to points you can use this calculation: points = pixels * 72 / 96. So for a height of 72 pixel, you pass 54 points.

See also

Release notes

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 17th July 2023

XL.Sheet.SetRightToLeft - XL.Sheet.SetRowHidden