DocumentBuilderItalic Property

True if the font is formatted as italic.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0


public bool Italic { get; set; }

Property Value

Type: Boolean


Shows how to fill MERGEFIELDs with data with a DocumentBuilder and without a mail merge.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert some MERGEFIELDS, which accept data from columns of the same name in a data source during a mail merge
builder.InsertField(" MERGEFIELD Chairman ");
builder.InsertField(" MERGEFIELD ChiefFinancialOfficer ");
builder.InsertField(" MERGEFIELD ChiefTechnologyOfficer ");

// They can also be filled in manually like this
builder.Bold = true;
builder.Writeln("John Doe");

builder.Italic = true;
builder.Writeln("Jane Doe");

builder.Italic = true;
builder.Writeln("John Bloggs");

doc.Save(ArtifactsDir + "DocumentBuilder.FillMergeFields.docx");

See Also