Table of Contents

TExcelMetrics.ColMult Method

Multiply by this number to convert the width of a column from resolution-independent-pixels (1/96 of an inch) to excel internal units. Note that the default column width is different, you need to multiply by DefColWidthAdapt See Excel Internal Units for more information in Excel internal units.

Syntax

Unit: FlexCel.Core

class function TExcelMetrics.ColMult(const Workbook: IRowColSize): Double; static;

Parameters

<-> Parameter Type Description
const Workbook IRowColSize

Examples

  ColWidthInPixels := xls.GetColWidth(Col) / TExcelMetrics.ColMult(xls);

See also