Spread Windows Forms 12.0 Product Documentation
ShrinkToFit Property (EditBaseCellType)
Example 


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.
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

Reference

EditBaseCellType Class
EditBaseCellType Members