次のサンプルコードは、通貨型セルの ShrinkToFit プロパティを設定します。
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