Click or drag to resize
NanoXLSX

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: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntax
C#
public static float GetInternalRowHeight(
	float rowHeight
)

Parameters

rowHeight  Single
Target row height (displayed in Excel)

Return Value

Single
The internal row height which snaps to the nearest pixel
Exceptions
ExceptionCondition
FormatExceptionThrows a FormatException if the row height is out of range
Remarks
The 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