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


In This Topic
    GetPreferredCellSize Method
    In This Topic
    Gets the desired size of the given cell on this sheet.
    Overload List
    OverloadDescription
    Gets the desired size of the given cell on this sheet.  
    Example
    This example illustrates the use of this member by returning the preferred size for the specified cell.
    System.Drawing.Size sz;
    fpSpread1.ActiveSheet.SetValue(0, 0, "Let's get the preferred size");
    sz = fpSpread1.ActiveSheet.GetPreferredCellSize(0,0);
    listBox1.Items.Add(sz.ToString());
    Dim sz As System.Drawing.Size
    FpSpread1.ActiveSheet.SetValue(0, 0, "Let's get the preferred size")
    sz = FpSpread1.ActiveSheet.GetPreferredCellSize(0, 0)
    ListBox1.Items.Add(sz.ToString())
    See Also