Bookmark.Case Özellik

Tanım

WdCharacterCaseDenetimdeki metnin durumunu temsil eden bir sabiti alır veya ayarlar Bookmark .

public Microsoft.Office.Interop.Word.WdCharacterCase Case { get; set; }

Özellik Değeri

WdCharacterCase

WdCharacterCaseDeğerlerden biri.

Örnekler

Aşağıdaki kod örneği, Bookmark metin içeren bir denetim ekler ve sonra metni büyük harflere dönüştürür.

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

private void BookmarkCase()
{
    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.Case = Word.WdCharacterCase.wdUpperCase;
}
Private Sub BookmarkCase()

    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.Case = Word.WdCharacterCase.wdUpperCase

End Sub

Şunlara uygulanır