ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLColumn Class / Width Property

In This Topic
    Width Property (XLColumn)
    In This Topic
    Gets or sets the width of the column, in twips.
    Syntax
    'Declaration
     
    Public Property Width As System.Integer
    public System.int Width {get; set;}
    Remarks

    A value of -1 indicates that the column should be displayed using the sheet's XLSheet.DefaultColumnWidth.

    To convert between pixels and twips, use the C1XLBook.TwipsToPixels and PixelsToTwips methods.

    See Also