[]
        
(Showing Draft Content)

C1.Excel.XLSheet.DefaultColumnWidth

DefaultColumnWidth Property

DefaultColumnWidth

Gets or sets the default column width for the sheet (in twips).

Declaration
public int DefaultColumnWidth { get; set; }
Remarks
<p>You can set the width of individual rows using the <xref href="C1.Excel.XLColumn" data-throw-if-not-resolved="false"></xref> class. Any columns that 

do not have a custom width assigned to them will be displayed using the sheet's DefaultColumnWidth.

The DefaultColumnWidth property is expressed in twips (1/20th of a point), rather than pixels. This allows sheets to maintain their aspect regardless of the resolution of the display.

To convert twips into pixels, use the TwipsToPixels(double) method in C1XLBook. To convert pixels into twips, use the PixelsToTwips(double) method.