Bookmark.Orientation الخاصية
الحصول أو تعيين الاتجاه نص في Bookmarkالتحكم متى الميزة "الاتجاه نص" هو ممكنة.
مساحة الاسم: Microsoft.Office.Tools.Word
التجميع: Microsoft.Office.Tools.Word (في Microsoft.Office.Tools.Word.dll)
بناء الجملة
'إقرار
Property Orientation As WdTextOrientation
Get
Set
WdTextOrientation Orientation { get; set; }
قيمة الخاصية
النوع: Microsoft.Office.Interop.Word.WdTextOrientation
واحد WdTextOrientationقيم.
ملاحظات
الثوابت المذكورة أعلاه قد لا تتوفر بعض إلى لك، اعتماداً تشغيل دعم اللغة (الولايات المتحدة الأمريكية اللغة الإنجليزية ل مثال) التي قمت بتحديدها أو مثبت.
أمثلة
مثال التعليمة البرمجية التالية يضيف Bookmarkعنصر تحكم يحتوي على النص أول الفقرة واتجاه النص إشارة مرجعية لتعيين wdTextOrientationVerticalFarEast.
Th هو المثال هو لتخصيص المستوى مستند.
Private Sub BookmarkOrientation()
Me.Paragraphs(1).Range.InsertParagraphBefore()
Dim Bookmark1 As Microsoft.Office.Tools.Word.Bookmark = _
Me.Controls.AddBookmark(Me.Paragraphs(1).Range, "Bookmark1")
Bookmark1.Text = "sample text."
Bookmark1.Orientation = Word.WdTextOrientation _
.wdTextOrientationVerticalFarEast
End Sub
private void BookmarkOrientation()
{
this.Paragraphs[1].Range.InsertParagraphBefore();
Microsoft.Office.Tools.Word.Bookmark bookmark1 =
this.Controls.AddBookmark(this.Paragraphs[1].Range,
"bookmark1");
bookmark1.Text = "sample text.";
bookmark1.Orientation = Word.WdTextOrientation.wdTextOrientationVerticalFarEast;
}
أمن NET Framework.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.