Bookmark.Case Property


Gets or sets a WdCharacterCase constant that represents the case of the text in the Bookmark control.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

WdCharacterCase Case { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdCharacterCase

One of the WdCharacterCase values.

The following code example adds a Bookmark control with text and then changes the text to upper case.

This example is for a document-level customization.

private void BookmarkCase()
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
    bookmark1.Text = "This is sample bookmark text.";
    bookmark1.Case = Word.WdCharacterCase.wdUpperCase;
Return to top