مشاركة عبر


Bookmark.Parent الخاصية

يحصل على الكائن الأصل من Bookmarkعنصر تحكم.

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

بناء الجملة

'إقرار
ReadOnly Property Parent As Object
    Get
Object Parent { get; }

قيمة الخاصية

النوع: System.Object
الكائن الأصل من Bookmarkعنصر تحكم.

أمثلة

مثال التعليمة البرمجية التالية يضيف Bookmarkعنصر تحكم يحتوي على النص أول الفقرة ويعرض أصل إشارة مرجعية في صندوق رسالة.

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

Private Sub BookmarkParent()

    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"
    MessageBox.Show("The parent of bookmark1 is : " & _
        Bookmark1.Parent.ToString)

End Sub
private void BookmarkParent()
{
    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";
    MessageBox.Show("The parent of bookmark1 is : " +
        bookmark1.Parent.ToString());

}

أمن NET Framework.

راجع أيضًَا

المرجع

Bookmark واجهة

Bookmark الأعضاء

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