property Items.ItemStrikeOut(Item as HITEM) as Boolean

Retrieves or sets the StrikeOut property of the Font object used to paint the item.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
Boolean A boolean expression that indicates whether the item uses strikeout font attribute to paint it.

If the ItemStrikeOut 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 CellCaptionFormat 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 draws a horizontal line through the selected item:

Private Sub ComboBox1_SelectionChanged()
    If Not (h = 0) Then ComboBox1.Items.ItemStrikeOut(h) = False
    h = ComboBox1.Items.SelectedItem()
    ComboBox1.Items.ItemStrikeOut(h) = True
End Sub

The following VB sample draws a horizontal line through the focused item:

With ComboBox1.Items
    .ItemStrikeOut(.FocusItem) = True
End With

The following C++ sample draws a horizontal line through the focused item:

#include "Items.h"
CItems items = m_combobox.GetItems();
items.SetItemStrikeOut( items.GetFocusItem() , TRUE );

The following C# sample draws a horizontal line through the focused item:

axComboBox1.Items.set_ItemStrikeOut(axComboBox1.Items.FocusItem, true);

The following VB.NET sample draws a horizontal line through the focused item:

With AxComboBox1.Items
    .ItemStrikeOut(.FocusItem) = True
End With

The following VFP sample draws a horizontal line through the focused item:

with thisform.ComboBox1.Items
	.DefaultItem = .FocusItem
	.ItemStrikeOut( 0 ) = .t.
endwith