Spread Windows Forms 12.0 Product Documentation
ShrinkToFit Property (EditBaseCellType)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > EditBaseCellType Class : ShrinkToFit Property
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


EditBaseCellType Class
EditBaseCellType Members