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.7+b0ed5f8a99a50b9e6528224889fbd7f23c30b364
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