[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDisplayFormat.ShrinkToFit

ShrinkToFit Property

ShrinkToFit

Gets a value that indicates whether the application automatically shrinks text to fit as displayed in the current user interface.

This property reflects the displayed format of the associated range, which can differ from the underlying range settings.

Declaration
bool ShrinkToFit { get; }
ReadOnly Property ShrinkToFit As Boolean
Examples
IRange range = worksheet.Range["A1"];
range.Value = "Long text";
range.ShrinkToFit = true;
bool shrinkToFit = range.DisplayFormat.ShrinkToFit;