| Visual Basic (Declaration) | |
|---|---|
Public Property ShrinkToFit As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As EditBaseCellType Dim value As Boolean instance.ShrinkToFit = value value = instance.ShrinkToFit | |
| C# | |
|---|---|
public bool ShrinkToFit {get; set;} | |
This example sets the ShrinkToFit property for the currency cell.
| C# | Copy Code |
|---|---|
FarPoint.Win.Spread.CellType.CurrencyCellType currcell = new FarPoint.Win.Spread.CellType.CurrencyCellType(); currcell.ShrinkToFit = true; fpSpread1.Sheets[0].Cells[0, 0].CellType = currcell; | |
| VB.NET | Copy Code |
|---|---|
Dim currcell As New FarPoint.Win.Spread.CellType.CurrencyCellType() currcell.ShrinkToFit = True FpSpread1.Sheets(0).Cells(0, 0).CellType = currcell | |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8