property Items.CellStrikeOut(Index as Long, ColIndex as Variant) as Boolean
Retrieves or sets a value that indicates whether the cell's caption should appear in strikeout.

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 is displayed with a horizontal line through it.

If the CellStrikeOut property is True, the cell's font is displayed with a horizontal line through it. 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.

The following VB sample draws a horizontal line through the caption of the cell that has the focus:

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

The following C++ sample draws a horizontal line through the caption of the cell that has the focus:

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

The following C# sample draws a horizontal line through the caption of the cell that has the focus:

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

The following VB.NET sample draws a horizontal line through the caption of the cell that has the focus:

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

The following VFP sample draws a horizontal line through the caption of the cell that has the focus:

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