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 can i set the font for the document?

Hi

Is there a way to set the font say Arial for the whole document? I see the property on IWTextRange, but i don't want to go and set the same for individual text.

Please advise.

Thanks
-Namita


2 Replies

NJ Namita Jain May 18, 2011 08:42 PM UTC

I figured out the way to do that using

IWParagraphStyle paraStyle = (IWParagraphStyle)document.AddParagraphStyle("Normal");
paraStyle.CharacterFormat.FontName = "Arial";
paraStyle.CharacterFormat.FontSize = 9;

Thanks



PR Poornima R Syncfusion Team May 19, 2011 03:50 AM UTC

Hi Namita,

Thank you for your interest in Syncfusion Products.

We are glad that you have found the answer by yourself.

Please let us know if you have any other questions.

Regards,
Poornima



Loader.
Live Chat Icon For mobile
Up arrow icon