Type | Description | |||
Boolean | A color expression that indicates whether the item's caption is underlined. |
Use the Bold, Italic, Underline and StrikeOut properties to apply different font attributes to the item. Use the Caption property to display different parts of the caption using HTML format. Use the Font property to specify the control's font. Use the Group property to get the group that owns the item. Use the AllowHighLight property to avoid highlighting an item when the cursor hovers it.
The following VB sample underlines all items in the first group:
Private Sub ExplorerBar1_AddItem(ByVal Item As EXPLORERBARLibCtl.IItem) If (Item.Group.Index = 0) Then With Item .Underline = True End With End If End Sub
The following C++ sample underlines all items in the first group:
void OnAddItemExplorerbar1(LPDISPATCH Item) { CItem item( Item ); item.m_bAutoRelease = FALSE; if ( item.GetGroup().GetIndex() == 0 ) item.SetUnderline( TRUE ); }
The following VB.NET sample underlines all items in the first group:
Private Sub AxExplorerBar1_AddItem(ByVal sender As Object, ByVal e As AxEXPLORERBARLib._IExplorerBarEvents_AddItemEvent) Handles AxExplorerBar1.AddItem With e.item If (.Group.Index = 0) Then .Underline = True End If End With End Sub
The following C# sample underlines all items in the first group:
private void axExplorerBar1_AddItem(object sender, AxEXPLORERBARLib._IExplorerBarEvents_AddItemEvent e) { if (e.item.Group.Index == 0) e.item.Underline = true; }
The following VFP sample underlines all items in the first group:
*** ActiveX Control Event *** LPARAMETERS item with item If (.Group.Index = 0) Then .Underline = .t. EndIf endwith