[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IShrinkToFitSettings.MinimumFont

MinimumFont Property

MinimumFont

Gets or sets the minimum font size used when performing shrink to fit.

This value specifies the smallest font size that can be used when wrapped text is reduced during shrink-to-fit processing.

Declaration
double MinimumFont { get; set; }
Property MinimumFont As Double
Examples
worksheet.Range["A1"].Value = "Document Solutions For Excel";
worksheet.Range["A1"].ColumnWidth = 12;
worksheet.Range["A1"].WrapText = true;
worksheet.Range["A1"].ShrinkToFit = true;

PdfSaveOptions options = new PdfSaveOptions();
IShrinkToFitSettings settings = options.ShrinkToFitSettings;
settings.CanShrinkToFitWrappedText = true;
settings.MinimumFont = 10;
double minimumFont = settings.MinimumFont;
workbook.Save("output.pdf", options);