Font.ItalicBi property (Publisher)

Returns or sets an MsoTriState constant indicating whether the specified text is formatted as italic; applies to text in a right-to-left language. Read/write.

Syntax

expression.ItalicBi

expression A variable that represents a Font object.

Return value

MsoTriState

Remarks

The ItalicBi property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

Constant Description
msoFalse None of the characters in the range are formatted as italic.
msoTriStateMixed A return value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue All of the characters in the range are formatted as italic.

Example

This example tests the text in the first story and displays one of two possible text boxes, depending on whether the text is right-to-left formatted and whether its font is formatted as italic.

Sub ItalicRtoL() 
 
 Dim stf As Font 
 
 Set stf = Application.ActiveDocument.Stories(1).TextRange.Font 
 With stf 
 If .ItalicBi = msoTrue Then 
 MsgBox "This story is right-to-left and is formatted as italic." 
 Else 
 MsgBox "This story is either not right-to-left" & _ 
 " or it is not formatted as italic" 
 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.