Font.BoldBi property (Publisher)

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

Syntax

expression.BoldBi

expression A variable that represents a Font object.

Return value

MsoTriState

Remarks

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

Constant Description
msoFalse None of the characters in the range are formatted as bold.
msoTriStateMixed A return value indicating that the range contains some text formatted as bold and some text not formatted as bold.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue All characters in the range are formatted as bold.

Example

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." 
 Else 
 MsgBox "This story is either not right-to-left" & _ 
 " or it is not bold." 
 End If 
 End With 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.