Can anyone give me an example on how to change the font size for a sheet using Gembox software? I was able to change for a cell though but I want to change in entire sheet.
How to change DefaultFontSize for a gembox spreadsheet?
1.2k views Asked by Indy Guy At
1
UPDATE 2020-03-27
In latest versions of GemBox.Spreadsheet there are some additional API that simplify this task.
For instance, to set a default font size for the whole Excel file, you can use the following:
Or if you want to explicitly specify the font size on each cell in the sheet, you can use the following:
ORIGINAL
If you have cells that do not have any font related settings (like color, name, size, etc.) applied to them directly then you can just change the cell style's font size, for example:
But in a case you do have some directly applied font settings then you will need to iterate through all the allocated cells and apply new size on them:
The above refers to the current latest version 3.7, but in the next version 3.9, which we are currently working on, this task is simplified like the following: