[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle.ShrinkToFit

ShrinkToFit Property

ShrinkToFit

Gets or sets whether the text automatically shrinks to fit in the available column width.

Use this property to control whether cells that use the style shrink text to fit the available column width.

Declaration
bool ShrinkToFit { get; set; }
Property ShrinkToFit As Boolean
Examples
IStyle style = workbook.Styles.Add("shrinkStyle");
style.ShrinkToFit = true;
worksheet.Range["A1"].Style = style;
bool shrinkToFit = style.ShrinkToFit;