TextBackground Property

       

Returns or sets a value that determines if a ListItem object's text background is opaque or transparent.

Syntax

object.TextBackground [ = integer]

The TextBackground property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
integer A constant or value that determines the style of the text background, as shown in Settings.

Settings

Constant Value Description
lvwTransparent 0 The text background is transparent.
lvwOpaque 1 The text background is the same color as the BackColor property.

Remarks

The text background is the rectangular field which surrounds the ListItem object's text.

The TextBackground property is used when the ListView control displays a picture (by assigning a picture to the Picture property). When a ListItem object is positioned over the picture and the property is set to opaque, the picture will not show through the text background. If the property is set to transparent, the background picture will be visible behind the text.