constant indicating if the font is bold; used with text in a right-to-left language. Read/write.
MsoTriState can be one of these MsoTriState constants. |
msoCTrue Not used with this property. |
msoFalse None of the characters in the range are formatted as bold. |
msoTriStateMixed Return value indicating that the range contains some text formatted as bold and some text not formatted as bold. |
msoTriStateToggle Set value which toggles between msoTrue and msoFalse. |
msoTrue All characters in the range are formatted as bold. |
expression.BoldBi
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example tests the text in the first story and displays one of two possible messages depending on if the text is right-to-left formatted and if 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