Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / GetColumnWidth Method
Example


In This Topic
    GetColumnWidth Method
    In This Topic
    Gets the width in pixels for the specified column on this sheet.
    Overload List
    OverloadDescription
    Gets the width in pixels for the specified column on this sheet.  
    Example
    This example illustrates the use of this member by returning the width for the specified column.
    fpSpread1.ActiveSheet.SetColumnWidth(0, 120); 
    int i;
    i = fpSpread1.ActiveSheet.GetColumnWidth(0);
    listBox1.Items.Add(i.ToString());
    
    FpSpread1.ActiveSheet.SetColumnWidth(0, 120)
    Dim i As Integer
    i = FpSpread1.ActiveSheet.GetColumnWidth(0)
    ListBox1.Items.Add(i.ToString())
    
    See Also