property Items.CellUnderline(Index as Long, ColIndex as Variant) as Boolean
Retrieves or sets a value that indicates whether the cell's caption is underlined.

 TypeDescription 
   Index as Long A long expression that indicates the index of the item.  
   ColIndex as Variant A long expression that indicates the column's index, or a string expression that indicates the column's caption or column's key.  
   Boolean A boolean expression that indicates whether the cell's caption is underlined.  

Use ItemBold, ItemItalic, ItemUnderline or ItemStrikeOut property to apply different font attributes to the item. Use the CellItalic, CellUnderline, CellBold or CellStrikeOut property to apply different font attributes to the cell. Use the CaptionFormat property to specify an HTML caption. Use the ConditionalFormats method to apply formats to a cell or range of cells, and have that formatting change depending on the value of the cell or the value of a formula.

The following VB sample underlines the focused cell:

With List1.Items
    .CellUnderline(.FirstVisibleItem, 0) = True
End With

The following C++ sample underlines the focused cell:

#include "Items.h"
CItems items = m_list.GetItems();
items.SetCellUnderline( items.GetFocusItem(), COleVariant( (long)0 ), TRUE );

The following C# sample underlines the focused cell:

axList1.Items.set_CellUnderline(axList1.Items.FocusItem, 0, true);

The following VB.NET sample underlines the focused cell:

With AxList1.Items
    .CellUnderline(.FocusItem, 0) = True
End With

The following VFP sample underlines the focused cell:

with thisform.List1.Items
	.CellUnderline( .FocusItem, 0 ) = .t.
endwith

 


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.