We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to set default font for the cells

Hello,

I'm new in these controls, I'm using Spreadsheet control with C#.

I'm stuck since the cells, when the sheet starts, has calibri font, instead I wish to set a different font style.

Using "spreadsheet1.Font" I can set the font for cells coordinates but cannot find any way to setup the default font for the cells self.

How can I do it?

Thank you!


1 Reply 1 reply marked as answer

SJ Sathiyathanam Jeyakumar Syncfusion Team March 13, 2023 01:08 PM UTC

Hi Alessandro Manotti,

In a spreadsheet, you can refer to the below ug link to set the font for cell ranges.

https://help.syncfusion.com/windowsforms/spreadsheet/formatting#font

Or else, if you want to change the font for entire cells, you can use the below code snippets.

spreadsheet.Workbook.StandardFont = "Times New Roman";

spreadsheet.Workbook.StandardFontSize = 10;

If we misunderstood your requirement, kindly provide more details about your requirement.

Regards

Sathiyathanam


Marked as answer
Loader.
Up arrow icon