DeleteStatePicture

Description

Deletes a state picture from a control.

Applies to

ListView and TreeView controls

Syntax

controlname.DeleteStatePicture ( index )

Argument

Description

controlname

The name of the ListView or TreeView control from which you want to delete a picture from the state image list

index

The index number of the state picture you want to delete

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Examples

Example 1

This example deletes a state picture from a ListView control:

lv_list.DeleteStatePicture(1)

See also