The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
CBClay 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);