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

Font.ItalicBi Property (Publisher)

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

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 an 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.

ConstantDescription
msoFalseNone of the characters in the range are formatted as italic.
msoTriStateMixedReturn value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggleSet value that switches between msoTrue and msoFalse.
msoTrueAll 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
© 2018 Microsoft