Click or drag to resize
NanoXLSX

UtilsGetPaneSplitWidth Method

Calculates the width of a split pane in a worksheet, based on the internal value (calculated by GetInternalPaneSplitWidth(Single, Single, Single))

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntax
C#
public static float GetPaneSplitWidth(
	float internalWidth,
	float maxDigitWidth = 7f,
	float textPadding = 5f
)

Parameters

internalWidth  Single
Internal pane width stored in a worksheet. The minimal value is defined by SPLIT_WIDTH_POINT_OFFSET
maxDigitWidth  Single  (Optional)
Maximum digit with of the default font (default is 7.0 for Calibri, size 11)
textPadding  Single  (Optional)
Text padding of the default font (default is 5.0 for Calibri, size 11)

Return Value

Single
Actual pane width
Remarks
Depending on the initial width, the result value of GetInternalPaneSplitWidth(Single, Single, Single) may not lead back to the initial value, since rounding is applied when calculating the internal width
See Also