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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

EditBaseCellType Class
EditBaseCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.