Bookmark.BoldBi Property


Gets or sets a value that indicates whether the text in the Bookmark control is formatted as bold.

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

int BoldBi { get; set; }

Property Value

Type: System.Int32

0 if none of the text in the Bookmark control is bold; 1 if all of the text in the Bookmark control is bold; F:Microsoft.Office.Interop.Word.WdConstants.wdUndefined (999999) if part of the text in the Bookmark control is bold.

The values this property can be set to are 0, 1, and F:Microsoft.Office.Interop.Word.WdConstants.wdToggle.

The BoldBi property applies to text in a right-to-left language.

The following code example adds a Bookmark control to the document and then applies formatting to the bookmark based on the LanguageID of the text within the bookmark.

This example is for a document-level customization.

private void BookmarkBiDi()
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =

    int WordTrue = 1;
    if (bookmark1.LanguageID == Word.WdLanguageID.wdArabic || 
        bookmark1.LanguageID == Word.WdLanguageID.wdHebrew)
        bookmark1.BoldBi = WordTrue;
        bookmark1.ItalicBi = WordTrue;
        bookmark1.Bold = WordTrue;
        bookmark1.Italic = WordTrue;
Return to top