Spread Windows Forms 7.0 Product Documentation
ShrinkToFit Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > EditBaseCellType Class : ShrinkToFit Property


Glossary Item Box

Gets or sets whether to shrink the text to fit the cell.

Syntax

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;}

Example

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.NETCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.