FontBold Property

True if the font is formatted as bold.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool Bold { get; set; }

Property Value

Type: Boolean
Examples
Inserts formatted text using DocumentBuilder.
DocumentBuilder builder = new DocumentBuilder();

// Specify font formatting before adding text
Aspose.Words.Font font = builder.Font;
font.Size = 16;
font.Bold = true;
font.Color = Color.Blue;
font.Name = "Arial";
font.Underline = Underline.Dash;

builder.Write("Sample text.");
See Also