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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing font properties of an ITextBoxShape object

Thread ID:





82149 Jun 3,2009 05:20 PM UTC Aug 30,2012 11:54 AM UTC WinForms 1
Tags: XlsIO
jo smith
Asked On June 3, 2009 05:20 PM UTC


i'de like to know how can i change properties like Bold, Font type, etc... of the text i insert into an ITextBoxShape object ?


Manoj Kumar G M [Syncfusion]
Replied On August 30, 2012 11:54 AM UTC

Hi Elad,

Thank you for choosing Syncfusion products.

You can also use rich-text formatting for the textbox elements to enhance their appearance.

The following code examples explain how to apply rich-text formatting to the textbox elements.

            IFont redFont = workbook.CreateFont();


            redFont.Bold = true;


            redFont.Italic = false;


            redFont.Size = 6;


            redFont.FontName = "Georgia";


            redFont.Color = ExcelKnownColors.Red;


            ITextBoxShape textbox = sheet.TextBoxes.AddTextBox(3, 7, 25, 100);

            textbox.RichText.Text="Essential XlsIO";


            textbox.RichText.SetFont(0,14, redFont);


Please let us know if you require any further clarifications.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon