public void Bidi()
{
//ExStart
//ExFor:Font.Bidi
//ExFor:Font.NameBi
//ExFor:Font.SizeBi
//ExFor:Font.ItalicBi
//ExFor:Font.BoldBi
//ExFor:Font.LocaleIdBi
//ExSummary:Shows how to insert and format right-to-left text.
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 http://www.microsoft.com/globaldev/reference/lcid-all.mspx
builder.Font.LocaleIdBi = 1025;
// Insert some Arabic text.
builder.Writeln("مرحبًا");
builder.Document.Save(MyDir + @"\Artifacts\Font.Bidi.doc");
//ExEnd
}