Ghosted Property

           

Returns or sets a value that determines whether a ListItem object in a ListView control is unavailable (it appears dimmed).

Syntax

object.Ghosted [= boolean]

The Ghosted property syntax has these parts:

Part Description
object An object expression that evaluates to a ListItem object.
boolean A Boolean expression specifying if the icon or small icon is ghosted, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True The ListItem object is unavailable to the user.
False (Default) The ListItem is available.

Remarks

The Ghosted property is typically used to show when a ListItem is cut, or disabled for some reason.

When a ghosted ListItem is selected, the label is highlighted but its image is not.