Table of contents
Collapse the table of content
Expand the table of content

Font.BoldBi Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets an MsoTriStateconstant indicating whether the font is bold; used with text in a right-to-left language. Read/write.


expression. BoldBi

_expression_A variable that represents a Font object.

Return Value



The BoldBi property value can be one of the following MsoTriState constants declared in the Microsoft Office type library.

msoFalseNone of the characters in the range are formatted as bold.
msoTriStateMixedReturn value indicating that the range contains some text formatted as bold and some text not formatted as bold.
msoTriStateToggleSet value that switches between msoTrue and msoFalse.
msoTrueAll characters in the range are formatted as bold.


This example tests the text in the first story and displays one of two possible messages depending on whether the text is right-to-left formatted and whether its font is bold. For this example to execute properly, there must be at least one story with text in the active publication.

Sub BoldRtoL() 

 Dim stf As Font 

 Set stf = Application.ActiveDocument.Stories(1).TextRange.Font 

 With stf 
 If .BoldBi = msoTrue Then 
 MsgBox "This story is right-to-left and is bold." 
 MsgBox "This story is either not right-to-left" &; _ 
 " or it is not bold." 
 End If 
 End With 

End Sub
© 2018 Microsoft