Microsoft.Office.Interop.Wordを使用してC#でWord文書を作成します
アラビア語のテキストをrtl(RightToLeft)方向に表示したい。テキストの方向をrtlに設定するにはどうすればよいですか?
以下のコードでは、Alighnmentを変更していますが、方向を変更できません。私を助けてください!
Word.Application wordApp = new Word.Application();
object objMissing = System.Reflection.Missing.Value;
Word.Document wordDoc = wordApp.Documents.Add(ref objMissing, ref objMissing, ref objMissing, ref objMissing);
Word.Paragraph wordParagraph = wordDoc.Paragraphs.Add(ref objMissing);
wordParagraph.Range.Font.Name = "B Titr";
wordParagraph.Range.Font.Size = 14;
WordParagraph.Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphRight;
wordParagraph.Range.Text = "My Arabic text";
wordParagraph.Range.InsertParagraphAfter();