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