Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / EditBaseCellType Class / ShrinkToFit Property

In This Topic
    ShrinkToFit Property (EditBaseCellType)
    In This Topic
    Gets or sets whether to shrink the text to fit the cell.
    Public Property ShrinkToFit As Boolean
    Dim instance As EditBaseCellType
    Dim value As Boolean
    instance.ShrinkToFit = value
    value = instance.ShrinkToFit
    public bool ShrinkToFit {get; set;}
    This example sets the ShrinkToFit property for the currency cell.
    FarPoint.Win.Spread.CellType.CurrencyCellType currcell = new FarPoint.Win.Spread.CellType.CurrencyCellType();
    currcell.ShrinkToFit = true;
    fpSpread1.Sheets[0].Cells[0, 0].CellType = currcell;
    Dim currcell As New FarPoint.Win.Spread.CellType.CurrencyCellType()
    currcell.ShrinkToFit = True
    FpSpread1.Sheets(0).Cells(0, 0).CellType = currcell
    See Also