public SetStyle ( String style ) : void | ||
style | String | A String representing a certain style. |
return | void |
Font boldFont = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.BOLD);
Font italicFont = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.ITALIC);
Font underlineFont = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.UNDERLINE);These examples use the Font class from the iTextSharp.text package library to set the font family, size, and style of the font. The SetStyle method is used to specify the font style (BOLD, ITALIC, or UNDERLINE) in each example. Overall, the Font SetStyle method in iTextSharp is a useful tool for customizing the appearance of text in PDF documents using C#.
public SetStyle ( String style ) : void | ||
style | String | A String representing a certain style. |
return | void |