 | UtilsGetInternalRowHeight Method |
Calculates the internal height of a row. This height is used only in the XML documents of worksheets and is usually not exposed to the (Excel) end user
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntaxpublic static float GetInternalRowHeight(
float rowHeight
)
Parameters
- rowHeight Single
- Target row height (displayed in Excel)
Return Value
SingleThe internal row height which snaps to the nearest pixel
ExceptionsException | Condition |
---|
FormatException | Throws a FormatException if the row height is out of range |
RemarksThe height is based on the calculated amount of pixels. One point are ~1.333 (1+1/3) pixels.
After the conversion, the number of pixels is rounded to the nearest integer and calculated back to points.
Therefore, the originally defined row height will slightly deviate, based on this pixel snap
See Also