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 12:29 PM UTC

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.
Up arrow icon