Aracılığıyla paylaş


Bookmark.Case Özellik

Alır veya ayarlar bir WdCharacterCase metni gösteren sabit Bookmark denetim.

Ad alanı:  Microsoft.Office.Tools.Word
Derleme:  Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll içinde)

Sözdizimi

'Bildirim
Property Case As WdCharacterCase
WdCharacterCase Case { get; set; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Word.WdCharacterCase
WdCharacterCase değerlerinden biri.

Örnekler

Aşağıdaki kod örneği ekler bir Bookmark metin denetimi ve sonra metni büyük harfe çevirir.

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

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
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;
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

Bookmark Arabirim

Microsoft.Office.Tools.Word Ad Alanı