Version

WorksheetColumnWidthUnit Enumeration

Represents the various units in which a column width can be represented.
Syntax
'Declaration
 
Public Enum WorksheetColumnWidthUnit 
   Inherits System.Enum
public enum WorksheetColumnWidthUnit : System.Enum 
Members
MemberDescription
CharacterThe column width is represented in units of the '0' digit character width, including column padding. The digit is measured with the default font for the workbook. The padding is a few pixels on either side of the column plus an additional pixel for the gridline.
Character256thThe column width is represented in 256ths of the '0' digit character width, including column padding, which means this value will be 256 times the width expressed in Character units. The digit is measured with the default font for the workbook. The padding is a few pixels on either side of the column plus an additional pixel for the gridline. These units are the units in which the WorksheetColumn.Width and Worksheet.DefaultColumnWidth properties are expressed.
CharacterPaddingExcludedThe column width is represented in units of the '0' digit character width, excluding padding. The digit is measured with the default font for the workbook. These units are the units in which Microsoft Excel displays column widths to the user and accepts new column widths from the user in the 'Column Width' dialog.
PixelThe column width is represented in pixels.
PointThe column width is represented in points.
TwipThe column width is represented in twips (20ths of a point).
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also