FontItalicBi Property |
Namespace: Aspose.Words
DocumentBuilder builder = new DocumentBuilder(); // Signal to Microsoft Word that this run of text contains right-to-left text builder.Font.Bidi = true; // Specify the font and font size to be used for the right-to-left text builder.Font.NameBi = "Andalus"; builder.Font.SizeBi = 48; // Specify that the right-to-left text in this run is bold and italic builder.Font.ItalicBi = true; builder.Font.BoldBi = true; // Specify the locale so Microsoft Word recognizes this text as Arabic - Saudi Arabia // For the list of locale identifiers see https://docs.microsoft.com/en-us/deployoffice/office2016/language-identifiers-and-optionstate-id-values-in-office-2016 builder.Font.LocaleIdBi = 1025; // Insert some Arabic text builder.Writeln("مرحبًا"); builder.Document.Save(ArtifactsDir + "Font.Bidi.doc");