Share via


DropCap.FontItalic Property

Publisher Developer Reference

Sets or returns an MsoTriState constant that represents whether the font for a dropped capital letter or WordArt text effect is italic. Read/write.

Syntax

expression.FontItalic

expression   A variable that represents a DropCap object.

Remarks

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

Example

This example makes the dropped capital letter in the specified text frame italic. This example assumes that the specified text frame is formatted with a dropped capital letter.

Visual Basic for Applications
  Sub BoldDropCap()
    With ActiveDocument.Pages(1).Shapes(1) _
            .TextFrame.TextRange.DropCap
        .FontBold = msoTrue
        .FontColor.RGB = RGB(Red:=150, Green:=50, Blue:=180)
        .FontItalic = msoTrue
        .FontName = "Script MT Bold"
    End With
End Sub

See Also