ItalicBi Property

Microsoft Publisher Visual Basic

constant indicating whether the specified text is formatted as italic; applies to 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 italic.
msoTriStateMixed Return value indicating a combination of msoTrue and msoFalse for the specified text.
msoTriStateToggle Set value which toggles between msoTrue and msoFalse.
msoTrue All of the characters in the range are formatted as italic.

expression.ItalicBi

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 text boxes depending on if the text is right-to-left formatted and if its font is italicized.

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

End Sub