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


In This Topic
    ShrinkToFit Property (EditBaseCellType)
    In This Topic
    Gets or sets whether to shrink the text to fit the cell.
    Syntax
    'Declaration
     
    Public Property ShrinkToFit As Boolean
    'Usage
     
    Dim instance As EditBaseCellType
    Dim value As Boolean
     
    instance.ShrinkToFit = value
     
    value = instance.ShrinkToFit
    public bool ShrinkToFit {get; set;}
    Example
    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