Excel for WPF | ComponentOne
C1.WPF.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 Integer
    public 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