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

Base Font Size

Thread ID:





33063 Aug 11,2005 11:34 PM UTC Feb 7,2006 03:26 PM UTC WinForms 2
Tags: HTMLUIControl
Gary Smith
Asked On August 11, 2005 11:34 PM UTC

hi, I''m evaluating the HTML control. I need to add a couple of buttons to increase/decrease the overall text size, in the way IE can do. How can I do this? Gary

Administrator [Syncfusion]
Replied On August 12, 2005 07:26 PM UTC

Hi Gary, I am try to create a sample that changes the font size like the feature in IE. I am running into some issues and I have submitted the issue to the developers and I will get back to you as soon as I hear from them. Thank you for your patience. Regards, Davis

Nandakumar R [Syncfusion]
Replied On February 7, 2006 03:26 PM UTC

Hi Gary, The HTMLUI control allows the user to access the default format used for rendering the html document. The DefaultFormat.Font property helps the user in getting or setting the base font and its size while rendering the document in the HTMLUI control. The font size can be changed by changing the DefaultFormat.Font property of the HTMLUI control. [C#] //Increasing the font size at run time by clicking a button FontIncButton.Click += new System.EventHandler(FontIncButton_Click); private void FontIncButton_Click(object sender, System.EventArgs e) { //Increasing the DefaultFormat font size float fontSize = 15; //Applying the changed size to the default format htmluiControl.DefaultFormat.Font = new Font(htmluiControl.DefaultFormat.Font.FontFamily, fontSize); } The sample attached below shows how the font size can be changed as like in IE. Hope this helps you. Thank you for your interest in Syncfusion products. Regards, Nanda. 33063_FontSizeChange.zip


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