مشاركة عبر


Bookmark.CharacterWidth الخاصية

الحصول أو قم بتعيين عرض الأحرف للنص في Bookmarkعنصر تحكم.

مساحة الاسم:  Microsoft.Office.Tools.Word
التجميع:  Microsoft.Office.Tools.Word (في Microsoft.Office.Tools.Word.dll)

بناء الجملة

'إقرار
Property CharacterWidth As WdCharacterWidth
    Get
    Set
WdCharacterWidth CharacterWidth { get; set; }

قيمة الخاصية

النوع: Microsoft.Office.Interop.Word.WdCharacterWidth
واحد WdCharacterWidthقيم.

أمثلة

ما يلي تعليمات برمجية في المثال إضافة Bookmarkالتحكم بنص وثم تغيير عرض أحرف نص إلى أحرف ذات عرض نصفي.

Th هو المثال هو لتخصيص المستوى مستند.

Private Sub BookmarkCharacterWidth()

    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.CharacterWidth = Word.WdCharacterWidth.wdWidthHalfWidth

End Sub
private void BookmarkCharacterWidth()
{
    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.CharacterWidth = Word.WdCharacterWidth
        .wdWidthHalfWidth;
}

أمن NET Framework.

راجع أيضًَا

المرجع

Bookmark واجهة

Bookmark الأعضاء

Microsoft.Office.Tools.Word مساحة الاسم