Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Sets or returns the width of the "Standard Column" as a number of '0' characters in the font of the 'Normal' style. This must be a value between 0 - 255.

C#
vb.net

Examples

C#
vb.net

Remarks

The normal font for Excel 2003 (and prior) files is 10pt Arial. The normal font for Excel 2007 and later is Calibri 11pt. Both of these fonts have a 7 pixel character width, which is about 5.25 points (for a 96-dpi screen). The default StandardWidthInChars is 8.43 characters, or about 44.25 points.

Because font sizes and point values don't always convert cleanly, you should expect some small error (usually less than a point) when using this property in conjunction with StandardWidth.

  • No labels