property Item.Italic as Boolean
Specifies whether the item's caption should appear in italic.

TypeDescription
Boolean A boolean expression that specifies whether the item's caption should appear in italic.

Use the Bold, Italic, Underline and Strikeout properties to customize the font attribute for any menu item. Use the <b> HTML tag in the Caption property to specify that parts of the caption should appear in italic. Use the Font property to specify the control's font.

The following VB sample makes italic the item with the identifier 50:

With ExMenu1.Item(50)
    .Italic = True
End With

The following C++ sample makes italic the item with the identifier 50:

CItem item = m_menu.GetItem( COleVariant( long( 50 ) ) );
item.SetItalic( TRUE );

The following VB.NET sample makes italic the item with the identifier 50:

With AxExMenu1.item(50)
    .Italic = True
End With

The following C# sample makes italic the item with the identifier 50:

EXMENULib.item item = axExMenu1[50];
item.Italic = true;

The following VFP sample makes italic the item with the identifier 50:

With thisform.ExMenu1.Item(50)
	.Italic = .t.
EndWith