Bookmark.Frames Özellik

Tanım

FramesDenetimdeki tüm kareleri temsil eden bir koleksiyon alır Bookmark .

public Microsoft.Office.Interop.Word.Frames Frames { get; }

Özellik Değeri

Frames

FramesDenetimdeki tüm kareleri temsil eden bir koleksiyon Bookmark .

Örnekler

Aşağıdaki kod örneği, Bookmark belgeye metin içeren bir denetim ekler ve sonra yer işaretine bir çerçeve ekler.

Bu örnek, belge düzeyinde özelleştirme içindir

private void BookmarkFrames()
{
    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.Frames.Add(bookmark1.Range);
}
Private Sub BookmarkFrames()

    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.Frames.Add(Bookmark1.Range)

End Sub

Şunlara uygulanır