property Item.Underline as Boolean
Specifies whether the item's caption appears as underlined.

TypeDescription
Boolean A boolean expression that specifies whether the item's caption appears as underlined. 

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

The following VB sample underlines the item with the identifier 50:

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

The following C++ sample underlines the item with the identifier 50:

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

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

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

The following C# sample underlines the item with the identifier 50:

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

The following VFP sample underlines the item with the identifier 50:

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