Bookmark.EmphasisMark Özellik

Tanım

Bir denetimin içindeki karakter veya belirlenmiş karakter dizesinin vurgu işaretini alır veya ayarlar Bookmark .

public Microsoft.Office.Interop.Word.WdEmphasisMark EmphasisMark { get; set; }

Özellik Değeri

WdEmphasisMark

WdEmphasisMarkDeğerlerden biri.

Örnekler

Aşağıdaki kod örneği, Bookmark ilk paragrafa metin içeren bir denetim ekler ve sonra EmphasisMark yer işaretini öğesine olarak ayarlar wdEmphasisMarkOverComma .

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

private void BookmarkEmphasisMark()
{
    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.EmphasisMark = Word.WdEmphasisMark.wdEmphasisMarkOverWhiteCircle;
    
}
Private Sub BookmarkEmphasisMark()

    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.EmphasisMark = Word.WdEmphasisMark _
        .wdEmphasisMarkOverWhiteCircle

End Sub

Şunlara uygulanır