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 multiple font styles same time

Hi, I want to set bold, Italic and Underline styles for a selected text. How should i do it? While creating new font object it alllows to set only one font style. Thanks, AN

1 Reply

CB Clay Burch Syncfusion Team June 14, 2002 08:29 AM

The FontStyle properties can be or-ed together. This code sets a label to use several styles. this.label1.Font = new Font(this.label1.Font, FontStyle.Bold | FontStyle.Italic | FontStyle.Underline);

Loader.
Live Chat Icon For mobile
Up arrow icon